Skip to main content
Use runStdioMcpServer to expose Corsair as a local MCP server that Claude Code spawns on demand.

Install

Create the server script

mcp-server.ts

Configure Claude Code

Add a .mcp.json file at your project root. Claude Code reads this automatically when you open the project.
.mcp.json
If your credentials aren’t loaded from a .env file, pass them via env:
.mcp.json
Restart Claude Code after adding the config. You can verify the server is connected by running /mcp in the Claude Code prompt — corsair should appear in the list.

Usage

Once connected, Claude Code can call Corsair tools directly. Start a conversation:
Claude calls corsair_setup first to check credentials, then list_operations to discover available endpoints, then run_script to execute.