Add the InfluxDB MCP server to Cursor
Config last verified Jun 1, 2026
The exact config to run InfluxDB in Cursor — paste it in, restart, and the tools load.
Prerequisites
- Cursor installed.
- INFLUX_DB_INSTANCE_URL — URL of your InfluxDB 3 instance (Core, Enterprise, Cloud Serverless, Clustered).
- INFLUX_DB_TOKEN — Authentication token for query and write operations.
- INFLUX_DB_PRODUCT_TYPE — Deployment type: core, enterprise, cloud-serverless, cloud-dedicated, or clustered.
Setup
1. Open ~/.cursor/mcp.json
2. Add this configuration
Add to ~/.cursor/mcp.json
~/.cursor/mcp.json
json
{
"mcpServers": {
"influxdb": {
"command": "npx",
"args": [
"-y",
"@influxdata/influxdb3-mcp-server"
],
"env": {
"INFLUX_DB_INSTANCE_URL": "<INFLUX_DB_INSTANCE_URL>",
"INFLUX_DB_TOKEN": "<INFLUX_DB_TOKEN>",
"INFLUX_DB_PRODUCT_TYPE": "<INFLUX_DB_PRODUCT_TYPE>"
}
}
}
}3. Restart Cursor and confirm the InfluxDB tools load.
Gotchas
Cursor keeps MCP servers under an "mcpServers" object in ~/.cursor/mcp.json for global use, and also reads a project-scoped .cursor/mcp.json so a repository can ship its own servers. Remote servers are configured with a bare "url" field and connect natively, with OAuth handled in-app when a server requires it.