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.
- Create an API key in the dashboard with the scopes you need. See API keys.
- Copy the server URL from Settings > MCP, or use
https://api.pingdex.io/mcp/pingdex. - Configure your client to send the key as a bearer token.
Choose scopes
Section titled “Choose scopes”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.
Protocol details
Section titled “Protocol details”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.
Configure a client
Section titled “Configure a client”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.
You can call any tool directly with a tools/call request. This example calls list_providers, which needs providers:manage.
curl https://api.pingdex.io/mcp/pingdex \ --request POST \ --header "Authorization: Bearer $PINGDEX_API_KEY" \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "MCP-Protocol-Version: 2026-07-28" \ --header "Mcp-Method: tools/call" \ --header "Mcp-Name: list_providers" \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "list_providers", "arguments": {}, "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } } }'Put tool inputs in params.arguments. The result is in result.structuredContent, and result.isError is true when the tool failed. For example, to fetch one campaign, set Mcp-Name: get_campaign and:
{ "name": "get_campaign", "arguments": { "id": "3e1a7c52-9b04-4d68-a2f1-6c8d0e5b7a93" }}Check the connection
Section titled “Check the connection”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.