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.1.tar.gz (15.7 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.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yuerenge_database_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 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.1.tar.gz
Algorithm Hash digest
SHA256 61d39cdeaff7093150f7ef953b1064d0c7b98b4d0dc2b71562484e08d01e019a
MD5 0d06ba1060173a8d271d205b14c6de3f
BLAKE2b-256 ccc76010af526164b7d6ab01962698a73eb543222d6d503d4f766a310737b2f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yuerenge_database_mcp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9362fe5789433d18eab97933c6f083be815e116fde99b4c92d1f1b1d67cc6e9
MD5 3a2d796ee5efc743c523090d7a311d65
BLAKE2b-256 ceb84af02accebb3f3b4441aef30400034fcc0ee33e8542c97175402b963a660

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