manpreet2000_mcp-database-server

manpreet2000_mcp-database-server

3.1

If you are the rightful owner of manpreet2000_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 SQL queries, distributed operations, and key-value caching, respectively. The server requires Node.js v20.12.2 or higher and is integrated with the Claude Desktop Application for configuration. The installation process involves cloning the repository, installing dependencies, and building the TypeScript code. Configuration is done through the Claude Desktop configuration file, where users specify their database connection details. The server is designed with security in mind, advising users to avoid committing sensitive information to version control and to use environment variables for database connection strings.

Features

  • Database operations through natural language
  • Supports MongoDB with collection listing, querying, inserting, deleting, and aggregation
  • Future support for PostgreSQL, CockroachDB, and Redis
  • Node.js v20.12.2 or higher required
  • 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