by FalkorDB
Provides a Model Context Protocol server that connects AI models to FalkorDB graph databases, translating queries and formatting responses according to the MCP standard.
FalkorDB MCP Server implements a Model Context Protocol (MCP) endpoint for FalkorDB, enabling AI models to query and interact with graph databases through a standardized HTTP API.
npm install
(or use npx -y falkordb-mcpserver
for a quick start)..env.example
to .env
and set environment variables such as PORT
, FALKORDB_HOST
, FALKORDB_PORT
, and MCP_API_KEY
.npm run dev
(hot‑reloading).npm run build && npm start
./api/mcp/metadata
, /api/mcp/context
, /api/mcp/health
, /api/mcp/graphs
)..env
variables.Q: Which version of Node.js is required? A: Node.js v16 or later.
Q: How do I secure the MCP endpoint?
A: Set MCP_API_KEY
in the .env
file and include the key in request headers.
Q: Can I run the server inside Docker?
A: Yes, the README includes a Docker command example; just ensure the .env
file is mounted.
Q: What databases does it support? A: It is designed specifically for FalkorDB instances.
Q: How do I add new graph queries?
A: Use the /api/mcp/context
POST endpoint with a valid MCP payload containing the Cypher/Gremlin query.
A Model Context Protocol (MCP) server for FalkorDB, allowing AI models to query and interact with graph databases.
This project implements a server that follows the Model Context Protocol (MCP) specification to connect AI models with FalkorDB graph databases. The server translates and routes MCP requests to FalkorDB and formats the responses according to the MCP standard.
Clone this repository:
git clone https://github.com/falkordb/falkordb-mcpserver.git
cd falkordb-mcpserver
Install dependencies:
npm install
Copy the example environment file and configure it:
cp .env.example .env
Edit .env
with your configuration details.
Configuration is managed through environment variables in the .env
file:
PORT
: Server port (default: 3000)NODE_ENV
: Environment (development, production)FALKORDB_HOST
: FalkorDB host (default: localhost)FALKORDB_PORT
: FalkorDB port (default: 6379)FALKORDB_USERNAME
: Username for FalkorDB authentication (if required)FALKORDB_PASSWORD
: Password for FalkorDB authentication (if required)MCP_API_KEY
: API key for authenticating MCP requestsStart the development server with hot-reloading:
npm run dev
Build and start the server:
npm run build
npm start
GET /api/mcp/metadata
: Get metadata about the FalkorDB instance and available capabilitiesPOST /api/mcp/context
: Execute queries against FalkorDBGET /api/mcp/health
: Check server healthGET /api/mcp/graphs
: Returns the list of GraphsTo use this server with MCP clients, you can add it to your MCP configuration:
{
"mcpServers": {
"falkordb": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-p", "3000:3000",
"--env-file", ".env",
"falkordb-mcpserver",
"falkordb://host.docker.internal:6379"
]
}
}
}
For client-side configuration:
{
"defaultServer": "falkordb",
"servers": {
"falkordb": {
"url": "http://localhost:3000/api/mcp",
"apiKey": "your_api_key_here"
}
}
}
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by googleapis
An MCP server that streamlines database tool development by handling connection pooling, authentication, observability, and secure access, allowing agents to interact with databases via natural language.
by bytebase
Provides a universal gateway that lets MCP‑compatible clients explore and query MySQL, PostgreSQL, SQL Server, MariaDB, and SQLite databases through a single standardized interface.
by designcomputer
Enables secure interaction with MySQL databases via the Model Context Protocol, allowing AI applications to list tables, read contents, and execute queries safely.
by benborla
Provides read‑only access to MySQL databases for large language models, allowing schema inspection and safe execution of SQL queries.
by ClickHouse
Enables AI assistants to run read‑only ClickHouse queries, list databases and tables, and execute embedded chDB queries through an MCP interface.
by chroma-core
Offers an MCP server exposing Chroma's vector database capabilities for LLM applications, supporting collection and document management, multiple embedding functions, and flexible client types such as in‑memory, persistent, HTTP, and cloud.
by kiliczsh
Enables LLMs to interact with MongoDB databases via a standardized interface, offering schema inspection, query execution, aggregation, and write capabilities, with optional read‑only mode and smart ObjectId handling.
by domdomegg
Provides read and write access to Airtable bases for AI systems, enabling inspection of schemas and manipulation of records.
by XGenerationLab
A Model Context Protocol (MCP) server that enables natural language queries to databases