MCP

Connect any Model Context Protocol client to FluxRouter through a single MCP endpoint.

FluxRouter exposes a Model Context Protocol endpoint at https://api.fluxrouter.ai/mcp. Any MCP client can connect to it with your Flux key and route every request through FluxRouter.

Add the server

Add a flux-router entry to your client's mcpServers map:

json
{
  "mcpServers": {
    "flux-router": {
      "url": "https://api.fluxrouter.ai/mcp",
      "auth": {
        "type": "bearer",
        "token": "sk-YOUR-FLUX-KEY"
      }
    }
  }
}

Zed names this key context_servers instead of mcpServers. The entry itself is the same.

Test it

Restart your MCP client so it picks up the new server, then send a request that uses it. A response confirms the connection is live. Your dashboard will show the request.

Notes

The endpoint authenticates with the same sk- Flux key you use everywhere else, so one key covers your OpenAI-compatible tools and your MCP clients at once.