Skip to content

Connect a client

To connect, you need the server URL and an API key that carries the scopes for the tools you want to use.

  1. Create an API key in the dashboard with the scopes you need. See API keys.
  2. Copy the server URL from Settings > MCP, or use https://api.pingdex.io/mcp/pingdex.
  3. Configure your client to send the key as a bearer token.

Grant only what the assistant needs.

Scope Lets the assistant
campaigns:manage List, read, create and update campaigns.
providers:manage List, read, create, update and validate providers.
leads:ingest Submit leads.
leads:read List leads, read a lead and list its delivery attempts.

A key with providers:manage and campaigns:manage is enough to set up delivery. Add leads:ingest to submit test leads and leads:read to inspect the result. For read-only investigation, leads:read alone is enough.

The server speaks JSON-RPC 2.0 over HTTP POST. The protocol version it is tested against is 2026-07-28. Each request carries the version, the method and the tool name in headers, and the version again in the message:

Header Value
Authorization Bearer <your API key>
MCP-Protocol-Version 2026-07-28
Mcp-Method The JSON-RPC method, for example tools/call.
Mcp-Name The tool name, for example list_providers.

In the message body, params._meta holds io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities.

The Mcp-Method and Mcp-Name headers must match the body. If they do not, the server returns 400 with JSON-RPC error code -32020. For example, sending Mcp-Method: tools/list with a tools/call body fails.

An MCP client sets these headers and the _meta values for you. You only need to set them yourself when you call the server directly.

Add the server to your Cursor MCP configuration, for example in .cursor/mcp.json in a project or ~/.cursor/mcp.json for all projects:

{
"mcpServers": {
"pingdex": {
"url": "https://api.pingdex.io/mcp/pingdex",
"headers": {
"Authorization": "Bearer ${env:PINGDEX_API_KEY}"
}
}
}
}

Set PINGDEX_API_KEY in the environment that starts Cursor. Cursor then lists the Pingdex tools in its MCP settings.

Call list_providers or list_campaigns. A 200 response with a structuredContent result means the key and URL are correct.

Symptom Likely cause
401 Unauthorized The Authorization header is missing or the key is not valid.
Tool result with isError: true and Missing required scope [...] The key lacks the scope for that tool. Create a key with the scope.
400 with error code -32020 Mcp-Method or Mcp-Name does not match the request body.

See Tools for what each tool needs, and API authentication for how keys and scopes work.