Skip to main content

A database management tool based on the MCP protocol

Project description

Yuerenge Database MCP

A database management tool based on the Model Context Protocol (MCP).

Features

  • Support for multiple databases (MySQL, Oracle)
  • Connection management
  • Table structure operations
  • Data querying and manipulation
  • Configuration management

Installation

pip install yuerenge-database-mcp

Usage

After installation, you can run the database MCP server:

yuerenge-database-mcp

Or with a specific configuration file:

DATABASE_CONFIG_PATH=/path/to/your/config.json yuerenge-database-mcp

Configuration

The tool uses a JSON configuration file to store database connection information. Example:

{
  "connections": [
    {
      "name": "my_mysql_db",
      "type": "mysql",
      "host": "localhost",
      "port": 3306,
      "username": "user",
      "password": "password",
      "database": "mydb",
      "enabled": true
    }
  ]
}

Tools Provided

This MCP server provides the following tools:

  1. Connection Management Tools

    • add_database_connection
    • remove_database_connection
    • list_database_connections
  2. Configuration Management Tools

    • list_configured_connections
    • enable_configured_connection
    • disable_configured_connection
    • reload_configurations
  3. Table Structure Tools

    • list_tables
    • get_table_structure
    • create_table
    • drop_table
  4. Data Query Tools

    • execute_query
    • select_data
  5. Data Manipulation Tools

    • insert_data
    • update_data
    • delete_data
  6. Advanced Query Tools

    • select_data_smart
    • select_data_paged
    • select_data_summary
    • select_data_html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yuerenge_database_mcp-0.1.2.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yuerenge_database_mcp-0.1.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file yuerenge_database_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: yuerenge_database_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuerenge_database_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4cdaee87c5344a4717dd9593824db19a9cd6a2f4ef807eb1d0717fb5f13d500c
MD5 30a6090e316a8b71c39ef0a8183e2f8c
BLAKE2b-256 1693654008bc92fd6d4ab90356128fb078bf43ec7b79a44fe7c53c55a84240a6

See more details on using hashes here.

File details

Details for the file yuerenge_database_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: yuerenge_database_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuerenge_database_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 081155557849223883c2ae47dc696cea71d3874d9eb3440d4e3c757ae90de3ef
MD5 9b43f37ff1cbe8fcc5cefb5108120f70
BLAKE2b-256 6f4d3791f4b8bf4b863997ca491cb406e8b9e4d3d072cf3ca956c27b6b4e3c60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page