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

Install

Create the server script

mcp-server.ts

Configure Cursor

Add a .cursor/mcp.json file at your project root. Cursor reads this automatically when you open the project.
.cursor/mcp.json
If your credentials aren’t loaded from a .env file, pass them via env:
.cursor/mcp.json
Restart Cursor after adding the config. You can verify the server is connected in Settings, Cursor Settings, MCP. corsair should appear with a green indicator.

Usage

Once connected, use Corsair tools in Cursor’s agent (Cmd+I or the chat panel):
The agent calls list_operations to discover available endpoints, get_schema to inspect parameters, then run_script to execute.