Ravendb
FreeNot checkedA Model Context Protocol server that enables AI assistants to interact with RavenDB databases through a standardized interface, supporting document operations,
About
A Model Context Protocol server that enables AI assistants to interact with RavenDB databases through a standardized interface, supporting document operations, collection exploration, and RQL queries.
README
A Model Context Protocol (MCP) server that enables AI assistants to interact with RavenDB databases through a standardized interface.
Overview
This MCP server allows AI assistants to perform common RavenDB operations including:
- Connection management
- Database selection
- Collection listing
- Index management
- Document operations (get, store, delete)
- RQL queries
Requirements
- Node.js 16+
- RavenDB 7.x
- Authentication using non-secured mode (no authentication)
Installation
# Install globally
npm install -g ravendb-mcp
# Or run directly with npx
npx ravendb-mcp
Configuration
Server Configuration
Configure the server using environment variables or a .env file:
# Authentication Method (Only non-secured mode is supported)
RAVENDB_AUTH_METHOD=none
# Connection
RAVENDB_URL=http://your-ravendb-server:port
# Optional settings
RAVENDB_QUERY_TIMEOUT=30000 # Query timeout in milliseconds (optional)
Cline MCP Configuration
To configure this MCP server for use with Cline AI, add the following to your MCP configuration:
Non-secured Mode Configuration
{
"mcpServers": {
"github.com/johnib/ravendb-mcp": {
"disabled": false,
"timeout": 60,
"command": "npx",
"args": ["-y", "ravendb-mcp"],
"env": {
"RAVENDB_AUTH_METHOD": "none",
"RAVENDB_URL": "http://your-ravendb-server:port"
},
"transportType": "stdio"
}
}
}
You can customize the environment variables based on your specific RavenDB setup.
Available Tools
Connection Tools
initialize-connection
Establishes a connection to a RavenDB server.
{
"server_url": "https://your-ravendb-server:port",
"database": "YourDatabase"
}
select-database
Switches to a specific database context.
{
"database": "AnotherDatabase"
}
Exploration Tools
show-collections
Lists all collections in the current database.
{}
show-indexes
Lists all indexes in the current database.
{}
Document Operations
get-document
Retrieves a document by ID.
{
"id": "employees/1"
}
store-document
Creates or updates a document.
{
"document": {
"name": "John Doe",
"email": "[email protected]",
"department": "Engineering"
},
"id": "employees/1" // Optional, will be generated if not provided
}
delete-document
Deletes a document by ID.
{
"id": "employees/1"
}
Query Operations
query-documents
Executes RQL queries with results handling.
{
"query": "from Employees where department = 'Engineering'"
}
Example Usage
Here's a typical workflow for interacting with the RavenDB MCP server through an AI assistant:
Connect to the database
Use the initialize-connection tool to connect to your RavenDB serverExplore the database structure
Use show-collections to see what collections are availableRetrieve documents
Use get-document to fetch specific documents by IDRun queries
Use query-documents to execute RQL queriesModify data
Use store-document to create or update documents Use delete-document to remove documents
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Test with the MCP inspector
npm run inspector
License
MIT
Install Ravendb in Claude Desktop, Claude Code & Cursor
unyly install ravendb-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add ravendb-mcp -- npx -y ravendb-mcpFAQ
Is Ravendb MCP free?
Yes, Ravendb MCP is free — one-click install via Unyly at no cost.
Does Ravendb need an API key?
No, Ravendb runs without API keys or environment variables.
Is Ravendb hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Ravendb in Claude Desktop, Claude Code or Cursor?
Open Ravendb on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Ravendb with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
