mcp-database-server

mcp-database-server

3.1

If you are the rightful owner of mcp-database-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server implementation that allows Large Language Models (LLMs) to interact with various databases through natural language.

The MCP Database Server is a cutting-edge implementation designed to facilitate seamless interaction between Large Language Models (LLMs) and databases using natural language. Currently, it supports MongoDB, enabling users to perform a variety of database operations such as listing collections, querying documents, inserting, deleting, and executing aggregate operations. The server is built with future expansion in mind, with plans to support additional databases like PostgreSQL, CockroachDB, and Redis. This will allow for a broader range of operations including SQL queries, distributed SQL operations, and key-value operations. The server requires Node.js v20.12.2 or higher and is integrated with the Claude Desktop Application for configuration. It is designed to be secure, encouraging the use of environment variables for sensitive information and adherence to database-specific security best practices.

Features

  • Database operations through natural language
  • Supports MongoDB with operations like listing collections, querying, inserting, deleting, and aggregation
  • Future support for PostgreSQL, CockroachDB, and Redis
  • Secure configuration using environment variables
  • Integration with Claude Desktop Application

Tools

  1. getCollections

    List all collections in the connection database

  2. getCollection

    Retrieve documents from collections, supporting query parameters, restrictions and projections

  3. insertOne

    Insert a single document into the collection

  4. deleteOne

    Delete a single document from a collection

  5. aggregate

    Perform an aggregate pipeline operation