Skip to main content
Version: Next

Connect with Cursor

In Cursor, go to Settings -> Cursor Settings -> Tools & Integration. Cursor 1

Click on "Add Custom MCP to opn the file ~/.cursor/mcp.json Cursor2

Setup the connection to MCPX using the following:

{
"mcpServers": {
"mcpx": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:9000/sse",
"--header",
"x-lunar-consumer-tag: cursor"
]
}
}
}

In the instance above MCPX is running locally on port 9000

Back in the Tools & Integration section you should now see mcpx under MCP Tools. Cursor3

tip

MCPX will expose the available tools which are set up in lunar/mcpx/packages/mcpx-server/config/mcp.json, however they are not yet accessible for use. Please close and restart Cursor Code Editor to ensure all tools and integrations are properly loaded and available