Skip to Content
AffFast
AI tools

Other MCP clients

The connection values for any MCP client, and a generic JSON config.

Any MCP client that supports the Streamable HTTP transport and custom headers can use the server.

Connection values

SettingValue
URLhttps://api.afffast.com/mcp
TransportStreamable HTTP (called http in many tools)
HeaderAuthorization: Bearer <your key>
AuthAn API key. There is no OAuth.

Never put the key in the URL. The API refuses a key in the query string.

Generic JSON config

Many clients use a JSON file with a key mcpServers. The field names differ between clients. This shape works in Claude Code (.mcp.json), and Cursor (mcp.json) uses the same shape without type:

{
  "mcpServers": {
    "afffast": {
      "type": "http",
      "url": "https://api.afffast.com/mcp",
      "headers": { "Authorization": "Bearer ${AFFFAST_API_KEY}" }
    }
  }
}
  • Claude Code reads ${AFFFAST_API_KEY}. Cursor reads ${env:AFFFAST_API_KEY}. Read the docs of your client to see which syntax it uses.
  • Windsurf uses serverUrl in place of url.
  • VS Code uses the key servers in place of mcpServers.
  • If your client has no variable syntax, write the key in the config file. Then protect the file. Never commit it.

A client with no HTTP support

If your client can start only a local command (stdio), use mcp-remote. It connects a local command to our HTTP server:

AFFFAST_AUTH_HEADER="Bearer $AFFFAST_API_KEY" \
  npx -y mcp-remote https://api.afffast.com/mcp --header 'Authorization:${AFFFAST_AUTH_HEADER}'

Check that it works

Call the MCP method tools/list. The answer must list the tools. Or look at the tool list in your client. The key decides the tools. A read-only key has no write tools.

To test the key without MCP, call the REST API:

curl https://api.afffast.com/v1/networks/sandbox \
  -H "Authorization: Bearer $AFFFAST_API_KEY"

Example prompts

  • "Query the revenue by network for this year."
  • "List the 10 newest conversions."
  • "Which sites earned the most commission last month?"

Troubleshooting

  • A 401 error. The key is wrong, revoked, or missing in the header. See api_key_invalid.
  • A 400 error about the key. The key is in the URL. Move it to the header. See api_key_in_query.
  • The client says that the transport is not supported. Use mcp-remote.
  • A 429 error. Wait for the time in Retry-After.

Security

  • Never paste a key into a chat. Use an environment variable if your client supports it.
  • Start with a test key. A test key reads and writes test data only.
  • Use a read-only key if the tool must only read.
  • Revoke a key in the dashboard when you think that someone saw it.

On this page