
Conectar con Cursor
Cursor — remote MCP servers through mcp.json, global or per project.
Este contenido está disponible en inglés.
¿Qué MCP vas a conectar? Los comandos de abajo cambian según tu elección.
- 1
Generate your API key
Sign in to app.newalgorithm.io with your account, open Keys & apps and generate a key. It is shown only once: copy it and store it somewhere safe.
Key formatna_live_xxxxxxxxxxxxxxxxx - 2
Open the MCP settings
Cursor Settings → MCP & Integrations → Add new global MCP server. The button opens ~/.cursor/mcp.json directly in the editor.
- 3
Declare the NewAlgorithm server
The presence of the url field is what tells Cursor the server is remote — no command or args.
~/.cursor/mcp.json{ "mcpServers": { "NewAlgorithm-TOTVS": { "url": "https://totvs.mcp.newalgorithm.io/mcp", "headers": { "Authorization": "Bearer na_live_xxxxxxxxxxxxxxxxx" } } } } - 4
Save and confirm
Go back to the MCP panel. NewAlgorithm should appear with a green indicator and the list of tools; if it turns red, use the refresh button.
Resultado esperado: NewAlgorithm-TOTVS — 4 tools enabled
- 5
Use it in Agent mode
MCP tools are only called in Cursor's Agent mode. Ask an SAP question without mentioning the Specialist and watch the na_search call appear in the flow.
There's also a per-project .cursor/mcp.json, which is versioned along with the code. Prefer the global one (~/.cursor/mcp.json) for the key: it stays on your machine and doesn't go into the repository.
Detalles de autenticación y herramientas en la Documentación.