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:
-
Connection Management Tools
- add_database_connection
- remove_database_connection
- list_database_connections
-
Configuration Management Tools
- list_configured_connections
- enable_configured_connection
- disable_configured_connection
- reload_configurations
-
Table Structure Tools
- list_tables
- get_table_structure
- create_table
- drop_table
-
Data Query Tools
- execute_query
- select_data
-
Data Manipulation Tools
- insert_data
- update_data
- delete_data
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1868095cee8c462c8054ca523206c1236305cfb7a3d6dac039b6b73f96df92ff
|
|
| MD5 |
b144d2c4951257a0e6d95555615c832b
|
|
| BLAKE2b-256 |
c60efed174595cabf6af17c6975104d5c5eb9c6fc70fc5ce6260dc592c22f830
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58697695e112ef4220667a98a5ef65066e2c3199765f86c71a5eeaae5f677fce
|
|
| MD5 |
7e4b41e00739e39818cea0ca8103bfea
|
|
| BLAKE2b-256 |
0807aee9422b576ad84a7c18aac82eda0958e827c331cf3cf6e4420426808a64
|