Skip to main content
The HasData MCP Server exposes HasData’s scraping and search capabilities to any client that speaks the Model Context Protocol. Point your MCP-enabled client (Claude, Codex, Cursor, VS Code, Windsurf, custom agents, etc.) at the HasData endpoint and your model can scrape web pages, run Google searches, and pull structured data without writing API integration code.

Quickstart

1

Add the server to your client

2

Sign in to HasData

Your client opens the HasData sign-in page: log in and click Allow. In Claude Code run /mcp to start it, in Codex run codex mcp login hasdata. No API key to copy — the connection gets its own key, named after the client.
3

Ask for some data

Your assistant now has the HasData tools. See Try it for prompts to start with.
Prefer an API key, or your client has no sign-in? See API key.

Try it

Ask in plain words; the model picks the tool and its parameters: Each tool call is billed like the same API request: see Billing.

Endpoint

The server uses the streamable HTTP transport.

Authentication

Two ways to connect: sign in with your HasData account, or send an API key.

Sign in with your HasData account

Clients that support OAuth connect without you handling a key: add the endpoint and follow the sign-in prompt. Each connection gets its own API key, named after the client — delete that key on the API keys page to disconnect it.

API key

Send your key from the dashboard in the x-api-key header. Use this for clients without OAuth support, and for unattended agents.
Any other client that speaks the streamable HTTP transport works the same way: point it at the endpoint and send x-api-key. Requests with no valid credential are rejected with 401 Unauthorized.

Choosing Which APIs to Expose

By default the server exposes all 57 HasData APIs as tools, and your model re-reads all 57 tool definitions on every call. Add the apis parameter to expose only the ones you need:
That connection has 7 tools instead of 57. Authentication, billing and tool behaviour are unchanged. Name a provider to get all of its APIs, or name a single API — ?apis=google_maps_search,web_scraping gives two tools. The Monitoring API is a provider too: ?apis=monitoring gives the 13 tools that create monitors, run checks and read changes. A misspelled name is ignored and the rest still loads. If every name is misspelled the request fails with 400 and lists the valid providers.

Billing

Each tool call consumes HasData credits the same way a direct API request would, from the workspace the connection is attached to. See Credits and Concurrency for details.

Troubleshooting

  • The sign-in page did not open. In Claude Code run /mcp and pick hasdata; in Codex run codex mcp login hasdata. Other clients show a sign-in prompt next to the server in their MCP settings.
  • Connected to the wrong workspace. Delete the key named after your client on the API keys page, then sign in again and pick the workspace on the consent screen.
  • 401 Unauthorized. The key was deleted or is wrong. Sign in again, or create a new key and update the x-api-key header.
  • Switching from sign-in to an API key. Remove the server from your client (in Claude Code: claude mcp remove hasdata), then add it again with the header from API key.