Cursor
Connect Cursor to an MCP server exposed through agentgateway on Kubernetes
Before you begin
- Set up an agentgateway proxy.
- Deploy an MCP server and expose it through agentgateway with an HTTPRoute.
- Get the MCP endpoint URL for your proxy, and use it in place of
<MCP_URL>in the following steps.
Configuration
Create or edit
.cursor/mcp.jsonin your project root.{ "mcpServers": { "agentgateway": { "url": "<MCP_URL>" } } }Restart Cursor and verify that the agentgateway tool appears in the MCP tools list.