MCP, the Model Context Protocol, is how coding agents such as Claude Code and Cursor reach tools outside the editor. withConflux runs an MCP server at https://withconflux.com/mcp. Connect it once with your withConflux key, and your agent can call every tool your key allows.
Key takeaways
- One server URL, one header:
Authorization: Bearerwith your withConflux key. - The agent sees only the tools the key's scopes allow, each with its price.
- Credits, spend caps and test keys work exactly as they do for the API.
Before you start
You need a withConflux key. Create one in your dashboard under Tools › Connect your agent. It is shown once, so copy it straight into an environment variable:
export WITHCONFLUX_KEY=cflx_test_...
Start with a test key. Test keys are never billed, so you can connect and try everything without spending credits. Don't put the key in a file inside your repository.
Claude Code
Run one command in your terminal:
claude mcp add --transport http withconflux https://withconflux.com/mcp \
--header "Authorization: Bearer $WITHCONFLUX_KEY"
Start a new session and ask "Which withConflux tools can you use?". The agent lists them.
Cursor
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in one project:
{
"mcpServers": {
"withconflux": {
"url": "https://withconflux.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_WITHCONFLUX_KEY"
}
}
}
}
Replace YOUR_WITHCONFLUX_KEY with the key. If the file is in a project, keep it out of version control.
Windsurf and other clients
Windsurf reads ~/.codeium/windsurf/mcp_config.json and uses serverUrl in place of url. Other MCP clients that take a JSON config usually want "type": "http" next to the URL. The setup guide has each block ready to copy.
Or let the agent do it
Agents can read setup instructions on their own. Paste this line into your agent:
set up withConflux - https://withconflux.com/llms.txt
The agent reads the steps, asks you for a key, keeps it in WITHCONFLUX_KEY and adds the server for the client it runs in.
What the agent gets
The tools a key sees depend on its scopes:
| Scope | MCP tools |
|---|---|
| detect | detect_image: is this image AI-generated? |
| music | music_check: copyrighted music in a file; riffhold_match: match against your own catalog (needs Riffhold) |
| visibility | visibility_ai_check: how the AI assistants answer about a site |
| llm | llm_chat and llm_models: OpenAI and Anthropic models through the LLM gateway |
A key with no scopes set can use all of them. Only tools that are switched on appear. Each tool's description includes its price per unit, so the agent knows the cost before it calls.
What a call looks like
Every result ends with a cost line:
Cost: €0.0040 (1 per image) · provider Sightengine · 640 ms
If the call can't run, the agent gets a message it can act on instead of a stack trace: a missing scope, a spend cap reached, not enough credits. Refused calls cost nothing. A file the provider can't read comes back as a tool error, also not charged.
One key per agent
Give each agent, or each machine, its own key. Name it so you know where it lives, for example "Cursor, work laptop". If a laptop is lost or a key ends up in a log, revoke that one key in your dashboard and the others keep working. Each key can have its own scopes, so a review agent and a writing agent don't need the same access.
Under the hood
The server speaks MCP over Streamable HTTP: JSON-RPC 2.0 over POST, answered with plain JSON, protocol version 2025-06-18 (older versions are accepted). It supports initialize, ping, tools/list and tools/call. A tool call over MCP runs the same code as POST /api/v1/tools/<slug>, so pricing, spend caps, provider fallback, your own provider keys and billing are the same. Calls are recorded as MCP calls, so Tools & usage can show them apart from API calls.
The MCP setup guide covers scopes, spend caps, test and live keys, and the common problems. Accounts are approved by our team: request access.