Skip to main content

MCP Server

Give an AI assistant direct access to your RushDB data without writing integration code. The RushDB MCP server (@rushdb/mcp-server) runs in three ways:

ModeBest forConnects toSetup
Hosted OAuthChatGPT, Claude.ai, web clientsRushDB CloudAdd one URL and sign in
Local, Cloud API keyClaude Desktop, Cursor, VS CodeRushDB CloudAdd an MCP config block
Local, self-hosted engineClaude Desktop, Cursor, VS CodeYour own rushdb engineAdd an MCP config block

Reference: MCP Server Reference · All MCP Tools


Hosted OAuth: No Installation​

Use this endpoint:

https://mcp.rushdb.com/mcp

ChatGPT​

  1. Open Settings → Connectors → Add connector.
  2. Enter https://mcp.rushdb.com/mcp.
  3. Sign in with your RushDB account.
  4. Choose the project to expose.

Claude.ai​

  1. Open Settings → Integrations → Add integration.
  2. Enter https://mcp.rushdb.com/mcp.
  3. Authorize with your RushDB account.
  4. Choose the project to expose.
caution

Always include /mcp. The root domain does not serve the MCP protocol.


Local MCP: RushDB Cloud API Key​

Get an API key at app.rushdb.com, add the relevant configuration, then restart your client.

Claude Desktop​

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
"mcpServers": {
"rushdb": {
"command": "npx",
"args": ["-y", "@rushdb/mcp-server"],
"env": {
"RUSHDB_API_KEY": "your-api-key-here"
}
}
}
}

Cursor​

Add .cursor/mcp.json in your project:

{
"mcpServers": {
"rushdb": {
"command": "npx",
"args": ["-y", "@rushdb/mcp-server"],
"env": {
"RUSHDB_API_KEY": "your-api-key-here"
}
}
}
}

VS Code: Copilot Agent Mode​

Add .vscode/mcp.json:

{
"servers": {
"rushdb": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@rushdb/mcp-server"],
"env": {
"RUSHDB_API_KEY": "your-api-key-here"
}
}
}
}

Self-Hosted Engine: Direct Mode​

Direct mode connects a local stdio MCP client to a RushDB engine you run. It needs no RushDB Cloud account, API key, dashboard or OAuth. Start the engine with a token:

export RUSHDB_TOKEN="$(openssl rand -hex 32)"
rushdb up --data-dir ./rushdb-data

Then configure the MCP server with the same token:

{
"mcpServers": {
"rushdb": {
"command": "npx",
"args": ["-y", "@rushdb/mcp-server"],
"env": {
"RUSHDB_MODE": "direct",
"RUSHDB_ENGINE_URL": "http://127.0.0.1:3000",
"RUSHDB_ENGINE_TOKEN": "your-engine-token"
}
}
}
}

Direct mode offers every tool whose work the engine does:

  • schema discovery;
  • record reads and writes, with ordering, projections and aggregations;
  • relationships, labels and properties;
  • bulk import and CSV export;
  • text indexes and keyword search;
  • external vector indexes, with vector and hybrid search by a queryVector you supply.

The RushDB Cloud tools are not listed, and are refused if called: smartSearch (natural-language search), the relationship-pattern tools, and anything that needs managed embeddings (a text query for vector search, managed indexes).

Direct mode runs over stdio only, on the same machine as the client: the MCP HTTP transport authenticates through RushDB Cloud's OAuth.


Verify the Connection​

Ask your assistant:

Call getSchemaMarkdown and show me what labels exist in my RushDB project.

A new project or engine returns an empty schema. That still confirms the connection works.


Mandatory Workflow​

RushDB MCP exposes a discovery-first workflow so agents query the schema that exists instead of guessing labels, fields, or operators:

  1. Call getSchemaMarkdown at the start of a session. It returns labels, property names and types, value ranges, and relationships.
  2. Classify the request as a listing, aggregation, traversal, keyword or semantic search, or mutation.
  3. Call getSearchQuerySpec before building queries with dates, metrics, groupBy, relationship traversal, or vector search.
  4. Use the discovered label and property names exactly as returned. Labels are case-sensitive.

Clients with MCP Prompts support can fetch rushdb.queryBuilder at session start. Other clients can call getQueryBuilderPrompt for the same instructions.

Local Configuration Reference​

VariableModeRequiredDefaultDescription
RUSHDB_API_KEYCloudyes—RushDB Cloud API key
RUSHDB_API_URLCloudnohttps://api.rushdb.com/api/v1A RushDB Cloud API endpoint other than the default
RUSHDB_MODEDirectyes—Set to direct
RUSHDB_ENGINE_URLDirectyes—The engine's base URL, e.g. http://127.0.0.1:3000
RUSHDB_ENGINE_TOKENDirectyes—The engine token
RUSHDB_ENGINE_SCOPEDirectno—The tenant, on an engine started with --multitenant
Security

Treat RUSHDB_API_KEY and RUSHDB_ENGINE_TOKEN like passwords. Inject them through your MCP client or an OS keychain, and do not commit them to version control.

Essential Tools​

NeedStart with
Discover a schemagetSchemaMarkdown, getSchema
Build a precise querygetSearchQuerySpec, findRecords
Read or write recordsgetRecord, createRecord, updateRecord, setRecord
Connect recordsfindRelationships, attachRelation, detachRelation
Work in batchesbulkCreateRecords, bulkDeleteRecords, exportRecords
Keyword searchcreateTextIndex, listTextIndexes, textSearch
Vector and hybrid searchfindEmbeddingIndexes, createEmbeddingIndex, vectorSearch
Natural-language search [Cloud]smartSearch
Review inferred graph structure [Cloud]listRelationshipPatterns, analyzeRelationshipPatterns, approveRelationshipPattern

Each MCP tool publishes its input schema to the connected client. See All MCP Tools for the complete catalog.

Troubleshooting​

SymptomCheck
Hosted connector cannot discover actionsConfirm the URL is https://mcp.rushdb.com/mcp, including /mcp, then remove and recreate the connector.
Local MCP reports a missing API keySet RUSHDB_API_KEY in the MCP client's env block and restart the client.
Direct mode cannot reach the engineCheck RUSHDB_ENGINE_URL with curl $RUSHDB_ENGINE_URL/health, and that the token matches the engine's.
A tool is missing in direct modeIt needs RushDB Cloud; see the tool catalog.
A query uses the wrong label or propertyCall getSchemaMarkdown again and use the case-sensitive names it returns.
A structured query fails validationCall getSearchQuerySpec and rebuild the query from the documented operators.

Make the Agent More Effective​

Install RushDB Agent Skills after the MCP connection. Skills teach the agent discovery-first querying, graph modeling, faceted search, and persistent memory patterns.

Next Steps​