Skip to content
Documentation

MCP server setup

PageToAPI is a remote MCP server. Add it to your AI assistant or editor, then ask for data from any public web page in plain language. You get clean JSON back, and credits are used only when a request succeeds.

Server URLhttps://pagetoapi.com/mcp
TransportStreamable HTTP
Sign-inOAuth (recommended), or an API key as a bearer token
Toolsget_data, quote, schedule_data, usage
https://pagetoapi.com/mcp

Sign-in options

OAuth (recommended)

Paste the server URL into your client. It opens a PageToAPI sign-in page, where you log in (or create a free account) and choose which organization's credits the connection uses. You don't copy any key. Each connection shows up in Keys as a named key, for example Claude connection. There you can give it its own monthly credit limit, or revoke it to disconnect. Only owners, admins and developers can connect apps.

API key (bearer token)

For clients without OAuth, for headless or CI use, and for your own code. Create a key in Keys (one per agent is a good habit, so each has its own limit), then send it on every request:

Authorization: Bearer pta_live_…

Keep keys out of shared config files and source control. The examples below read the key from a PAGETOAPI_KEY environment variable.

Claude

OAuth: claude.ai, Claude Desktop and mobile

  1. Open Settings → Connectors and choose Add custom connector.
  2. Name it PageToAPI and paste the URL https://pagetoapi.com/mcp. Leave the advanced OAuth fields empty.
  3. Choose Add, then Connect, and sign in to PageToAPI.
  4. In a chat, turn PageToAPI on from the tools menu.

On Team and Enterprise plans, an owner adds the connector once in the organization's connector settings, and each member then connects their own PageToAPI account.

API key: your own app on the Claude API

Use the Messages API's MCP connector and pass the key as authorization_token. Set CLAUDE_MODEL to the Claude model your app uses:

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "'"$CLAUDE_MODEL"'",
    "max_tokens": 4096,
    "mcp_servers": [{ "type": "url", "name": "pagetoapi",
      "url": "https://pagetoapi.com/mcp",
      "authorization_token": "'"$PAGETOAPI_KEY"'" }],
    "tools": [{ "type": "mcp_toolset", "mcp_server_name": "pagetoapi" }],
    "messages": [{ "role": "user",
      "content": "What is the price of https://example.com/product/123 ?" }]
  }'

ChatGPT

OAuth: ChatGPT web and desktop

  1. Open Settings → Apps → Advanced settings and turn on Developer mode. On business plans, an admin may need to allow it first.
  2. Back in Settings → Apps, choose Create app.
  3. Name it PageToAPI, paste the URL https://pagetoapi.com/mcp, set Authentication to OAuth, and create it.
  4. Sign in to PageToAPI when asked. In a chat, pick PageToAPI from the + menu.

API key: your own app on the OpenAI API

The ChatGPT app signs in with OAuth only. From code, use the Responses API's remote MCP tool and pass the key as authorization:

curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-5",
    "tools": [{ "type": "mcp", "server_label": "pagetoapi",
      "server_url": "https://pagetoapi.com/mcp",
      "authorization": "'"$PAGETOAPI_KEY"'",
      "require_approval": "never" }],
    "input": "What is the price of https://example.com/product/123 ?"
  }'

Cursor

Add PageToAPI to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). You can also open Cursor Settings → MCP → Add new MCP server, which edits the same file.

OAuth

{
  "mcpServers": {
    "pagetoapi": { "url": "https://pagetoapi.com/mcp" }
  }
}

Cursor then shows PageToAPI as Needs login in the MCP settings. Click it to sign in.

API key

{
  "mcpServers": {
    "pagetoapi": {
      "url": "https://pagetoapi.com/mcp",
      "headers": { "Authorization": "Bearer ${env:PAGETOAPI_KEY}" }
    }
  }
}

Claude Code

OAuth

claude mcp add --transport http pagetoapi https://pagetoapi.com/mcp

Then run /mcp inside Claude Code, select pagetoapi and choose Authenticate. Add --scope user to make it available in every project.

API key

claude mcp add --transport http pagetoapi https://pagetoapi.com/mcp \
  --header "Authorization: Bearer $PAGETOAPI_KEY"

Check the connection with claude mcp list.

Tools

ToolWhat it doesChanges anything?
get_data
Get web page data
Reads one public page and returns the data you asked for as JSON. Uses credits only on success.No (read-only)
quote
Estimate credits
Estimates the credits a get_data call would use, without fetching anything.No (read-only)
schedule_data
Schedule a recurring request
Creates a schedule that reads the same page hourly, daily, weekly or every N minutes. Results go to your webhook and the dashboard.Creates a schedule. Never deletes or overwrites anything.
usage
Check balance and usage
Shows your credit balance, the last 30 days of usage, and active schedules.No (read-only)

Arguments for each tool are in the API reference.

Example prompts

  • "What's the price, stock status and rating of this product? https://www.example-store.com/p/12345"
  • "Get the follower count, bio and last 5 posts with their view counts from this TikTok profile: https://www.tiktok.com/@example"
  • "Pull every job title, location and salary range from this careers page into a table: https://example.com/careers"
  • "How many credits would it cost to read this page? https://example.com/listing/987"
  • "Check the price of this product every morning at 7:00 UTC and send the results to my webhook."
  • "How many PageToAPI credits do I have left, and how many did I use this month?"

Troubleshooting

  • 401 unauthorized. The key is missing, mistyped or revoked, or the OAuth sign-in expired. Reconnect, or create a new key in Keys.
  • Not enough credits. Top up in Billing, or ask the assistant to use the usage tool to check your balance.
  • Blocked by policy. PageToAPI reads public pages only. See acceptable use. Refused requests aren't charged.
  • Disconnect. Revoke the connection's key in Keys, or remove the connector in your client.
  • Still stuck? Email support@pagetoapi.com.

For developers: standard MCP authorization (OAuth 2.1 with PKCE, dynamic client registration and client ID metadata documents). Discovery is at https://pagetoapi.com/.well-known/oauth-protected-resource/mcp.