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.3.tar.gz (19.0 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.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yuerenge_database_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 19.0 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.3.tar.gz
Algorithm Hash digest
SHA256 1868095cee8c462c8054ca523206c1236305cfb7a3d6dac039b6b73f96df92ff
MD5 b144d2c4951257a0e6d95555615c832b
BLAKE2b-256 c60efed174595cabf6af17c6975104d5c5eb9c6fc70fc5ce6260dc592c22f830

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yuerenge_database_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58697695e112ef4220667a98a5ef65066e2c3199765f86c71a5eeaae5f677fce
MD5 7e4b41e00739e39818cea0ca8103bfea
BLAKE2b-256 0807aee9422b576ad84a7c18aac82eda0958e827c331cf3cf6e4420426808a64

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