mcp-server-ladybug
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-ladybug find all Person nodes in the graph"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LadybugDB MCP Server
An MCP server implementation that interacts with LadybugDB graph databases, providing Cypher query capabilities to AI Assistants and IDEs.
About LadybugDB
LadybugDB is an embedded graph database built for query speed and scalability. It is optimized for handling complex join-heavy analytical workloads on very large graphs.
Key features:
Property Graph data model with Cypher query language
Embedded database - runs in-process with your application
Columnar disk-based storage for analytical performance
Strongly typed schema with explicit data types
JSON support through the json extension
Interoperability with Parquet, Arrow, DuckDB, and more
Related MCP server: Gremlin MCP Server
Components
Prompts
The server provides one prompt:
ladybugdb-initial-prompt: A prompt to initialize a connection to LadybugDB and start working with it
Tools
The server offers one tool:
query: Execute a Cypher query on the LadybugDB databaseInputs:
query(string, required): The Cypher query to execute
All interactions with LadybugDB are done through writing Cypher queries.
Result Limiting: Query results are automatically limited to prevent using up too much context:
Maximum 1024 rows by default (configurable with
--max-rows)Maximum 50,000 characters by default (configurable with
--max-chars)Truncated responses include a note about truncation
Installation
Using pip (recommended)
pip install mcp-server-ladybug
mcp-server-ladybug --db-path :memory:Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
Using Docker
docker run -it --rm ghcr.io/ladybugdb/mcp-server-ladybug:latest --db-path :memory:Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
Using uvx
uvx mcp-server-ladybug --db-path :memory:Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
From source
git clone https://github.com/LadybugDB/mcp-server-ladybug.git
cd mcp-server-ladybug
uv pip install -e .
mcp-server-ladybug --db-path :memory:Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
Command Line Parameters
Parameter | Type | Default | Description |
| Choice |
| Transport type. Options: |
| Integer |
| Port to listen on for sse and stream transport mode |
| String |
| Host to bind the MCP server for sse and stream transport mode |
| String |
| Path to LadybugDB database file |
| Integer |
| Maximum number of rows to return from queries |
| Integer |
| Maximum number of characters in query results |
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-ladybug": {
"command": "uvx",
"args": [
"mcp-server-ladybug",
"--db-path",
":memory:"
]
}
}
}Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
Cypher Query Examples
Create a graph schema
CREATE NODE TABLE Person (id INT64 PRIMARY KEY, name STRING, age INT64);
CREATE NODE TABLE City (name STRING PRIMARY KEY, population INT64);
CREATE REL TABLE Follows (FROM Person TO Person, since INT64);
CREATE REL TABLE LivesIn (FROM Person TO City);Import data from CSV
COPY Person FROM 'persons.csv';
COPY City FROM 'cities.csv';
COPY Follows FROM 'follows.csv';Query relationships
MATCH (a:Person)-[:Follows]->(b:Person)
WHERE a.age > 25
RETURN a.name, b.name, a.age;Use JSON data (requires json extension)
INSTALL json;
LOAD json;
CREATE NODE TABLE Product (id INT64 PRIMARY KEY, details JSON);
COPY Product FROM 'products.json';
MATCH (p:Product)
WHERE json_extract(p.details, '$.category') = 'electronics'
RETURN p.id, json_extract(p.details, '$.name') AS product_name;Development
uv pip install -e .
python -m mcp_server_ladybug --db-path :memory:Note: Replace
:memory:with a path like/path/to/local.lbdbto persist data to disk.
License
MIT License
Available Tools
1 toolqueryA
Use this to execute a Cypher query on the LadybugDB database
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusion between tools. The tool's purpose is clearly defined as executing Cypher queries on the LadybugDB database.
With only one tool named 'query', there is no pattern to assess consistency. However, the name is simple and descriptive, matching common conventions for a single-operation server.
A single tool is minimal for a database server. While a query tool is essential, the server likely needs additional tools for schema exploration, data manipulation, or other database operations to be functional.
The tool set is severely incomplete for typical database interactions. It only provides query execution, lacking tools for schema inspection, data definition, or other common operations, which will likely cause agent failures.
Maintenance
Related MCP Connectors
A private graph database you query in plain English or Cypher. Hosted, nothing to install.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Draw, shape, and edit Neo4j graph data models in toro4n with your AI assistant.
Store, query, and update structured data from any AI agent
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Neo4j graph databases through Cypher queries, supporting both read and write operations, schema exploration, and remote database connections via SSE or STDIO transport protocols.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Gremlin-compatible graph databases through natural language, supporting schema discovery, complex graph queries, relationship analysis, and data import/export operations.20 npm9MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Neo4j graph databases through natural language, supporting Cypher queries, schema management, data manipulation, and graph algorithms.MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Neo4j databases from the Cursor IDE by executing Cypher queries, managing connections, and retrieving database information.3-