npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ravendb-mcp

v0.0.1

Published

MCP Server for interacting with RavenDB

Downloads

6

Readme

RavenDB MCP Server

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:

  1. Connect to the database

    Use the initialize-connection tool to connect to your RavenDB server
  2. Explore the database structure

    Use show-collections to see what collections are available
  3. Retrieve documents

    Use get-document to fetch specific documents by ID
  4. Run queries

    Use query-documents to execute RQL queries
  5. Modify 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