MCP ExplorerExplorer

Cnosdb Mcp Server

@cnosdbon 9 months ago
1 MIT
FreeCommunity
AI Systems
An MCP server for CnosDB.

Overview

What is Cnosdb Mcp Server

CnosDB MCP Server is a server designed to facilitate communication with the CnosDB database, allowing users to perform various database operations efficiently.

Use cases

Use cases for CnosDB MCP Server include querying data for analytics reports, managing database schemas, and integrating with applications that require real-time data access.

How to use

To use CnosDB MCP Server, clone the repository, create a virtual environment, activate it, and install the necessary dependencies. Configure the server settings in the Claude Desktop configuration file to connect to your CnosDB instance.

Key features

Key features of CnosDB MCP Server include the ability to execute queries automatically identifying SQL, list all databases, list tables within a database, and describe the schema of specific tables.

Where to use

CnosDB MCP Server can be used in various fields that require database management and querying, such as data analytics, application development, and backend services.

Content

CnosDB MCP Server

Python 3.8
License

An MCP server for CnosDB.

Features

  • query

    Execute query (automatically identifies SQL)

  • list_databases

    List all databases

  • list_tables

    List tables in database

  • describe_table

    Display table schema for [table_name]

Development

# Clone the repository
git clone https://github.com/cnosdb/cnosdb-mcp-server.git
cd cnosdb-mcp-server

# Create virtual environment
uv .venv
source .venv/bin/activate  # or `venv\Scripts\activate` on Windows

# Install development dependencies
pip install -r requirements.txt

Configuration

For alternative MCP clients, see: https://github.com/punkpeye/awesome-mcp-clients

  1. Open the Claude Desktop configuration file located at:

    • On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • On Windows: %APPDATA%/Claude/claude_desktop_config.json

  2. Add the following:

{
  "name": "CnosDB",
  "key": "CnosDBMCPServer",
  "command": "uv",
  "args": [
    "--directory",
    "REPO_PATH/cnosdb-mcp-server",
    "run",
    "server.py"
  ],
  "env": {
    "CNOSDB_HOST": "127.0.0.1",
    "CNOSDB_PORT": "8902",
    "CNOSDB_USERNAME": "root",
    "CNOSDB_PASSWORD": "CnosDB#!"
  }
}

Update the environment variables to point to your own CnosDB service.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers