KrexelDocsHome

Install the Krexel MCP server

Three commands. Works with Claude Code, Codex, Cursor, Windsurf, Continue, VS Code, and Claude Desktop. This is the local setup path; browser-hosted clients use automatic OAuth instead.

Install

You need Node.js 20+ and an API key from krexel.com/keys.

npm install -g krexel krexel-mcp
krexel login
krexel init

krexel login validates a krx_... key and stores it in ~/.krexel/auth.json. krexel init auto-detects supported local clients and adds the MCP entry.

Restart your AI client after krexel init. Done.

Manual configuration

If krexel init didn't detect your client, paste this into its MCP config:

{
  "mcpServers": {
    "krexel": {
      "command": "npx",
      "args": ["-y", "krexel-mcp"],
      "env": {
        "KREXEL_API_URL": "https://api.krexel.com",
        "KREXEL_API_KEY": "krx_replace_with_your_key"
      }
    }
  }
}

For Codex, use [mcp_servers.krexel] in ~/.codex/config.toml with the same shape.

Tools exposed

The local stdio server exposes nine tools and authenticates with your KREXEL_API_KEY. Remote MCP clients use the hosted catalogue at https://krexel.com/api/mcp with automatic OAuth; they do not receive this API key.

Troubleshooting

  • Server missing after install — restart the AI client.
  • KREXEL_API_KEY rejected — create a new key at /keys, run krexel login, restart. Make sure you are configuring a local stdio client, not a remote OAuth connector.
  • Unknown tool error — ask the client to refresh tools/list.

For more, see docs/oauth-mcp.