Quick Start

Prerequisites

  • Node.js 18+
  • FalkorDB instance (running locally or remotely)
  • Claude Desktop app (for AI integration)

Running from npm

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "falkordb": {
      "command": "npx",
      "args": [
        "-y",
        "@falkordb/mcpserver@latest"
      ],
      "env": {
        "FALKORDB_HOST": "localhost",
        "FALKORDB_PORT": "6379",
        "FALKORDB_USERNAME": "",
        "FALKORDB_PASSWORD": ""
      }
    }
  }
}

Restart Claude Desktop and you’ll see the FalkorDB tools available!

Running with npx

You can run the server directly from the command line:

# Run with stdio transport (default)
FALKORDB_HOST=localhost FALKORDB_PORT=6379 npx -y @falkordb/mcpserver

# Run with HTTP transport
MCP_TRANSPORT=http MCP_PORT=3005 FALKORDB_HOST=localhost FALKORDB_PORT=6379 npx -y @falkordb/mcpserver

# Using a .env file with dotenv-cli
npx dotenv-cli -e .env -- npx @falkordb/mcpserver

Docker Compose

Run FalkorDB and the MCP server together:

git clone https://github.com/FalkorDB/FalkorDB-MCPServer.git
cd FalkorDB-MCPServer
cp .env.example .env   # Edit to set MCP_API_KEY, FALKORDB_PASSWORD, etc.
docker compose up -d

This starts both FalkorDB and the MCP server with health checks and persistent volumes.

Available MCP Tools

Once connected to Claude or another MCP-compatible AI assistant, you can:

Query Graphs

"Show me all people who know each other"
"Find the shortest path between two nodes"
"What relationships does John have?"
"Run a read-only query on the replica instance"

The query_graph tool supports a readOnly parameter to execute queries using GRAPH.RO_QUERY, ideal for:

  • Running queries on replica instances
  • Preventing accidental write operations
  • Ensuring data integrity in production environments

Manage Data

"Create a new person named Alice who knows Bob"
"Add a 'WORKS_AT' relationship between Alice and TechCorp"

Explore Structure

"List all available graphs"
"Show me the structure of the user_data graph"
"Delete the old_test graph"

Example Usage

Once connected, Claude can help you write and execute queries:

// Query relationships
MATCH (p:Person)-[:KNOWS]->(friend:Person)
WHERE p.name = 'Alice'
RETURN friend.name, friend.age

// Create data structures
CREATE (alice:Person {name: 'Alice', age: 30})
CREATE (bob:Person {name: 'Bob', age: 25})
CREATE (alice)-[:KNOWS {since: 2020}]->(bob)

// Analyze your graph
MATCH path = shortestPath((start:Person)-[*]-(end:Person))
WHERE start.name = 'Alice' AND end.name = 'Charlie'
RETURN path
Frequently Asked Questions 5
What do I need to get started with the FalkorDB MCP Server?

You need Node.js 18+, a running FalkorDB instance (locally via Docker or FalkorDB Cloud), and an MCP-compatible AI client like Claude Desktop. No additional dependencies are required since the server runs via npx.

How do I connect Claude Desktop to FalkorDB?

Add the MCP server configuration to your Claude Desktop config file (claude_desktop_config.json). Set the command to npx with args ['-y', '@falkordb/mcpserver@latest'] and provide your FalkorDB connection details as environment variables.

Can I run the MCP Server without Claude Desktop?

Yes. Run it directly with npx -y @falkordb/mcpserver using stdio transport, or set MCP_TRANSPORT=http and MCP_PORT=3005 for HTTP transport that any MCP-compatible client can connect to.

How do I use Docker Compose for a full setup?

Clone the FalkorDB-MCPServer repository, copy .env.example to .env, configure your settings, and run docker compose up -d. This starts both FalkorDB and the MCP server with health checks and persistent volumes.

What can I ask Claude once connected to FalkorDB?

You can ask Claude to query graphs (‘Show me all people who know each other’), create data (‘Create a person named Alice who knows Bob’), explore structure (‘List all available graphs’), and run read-only queries on replica instances.