Add your description here
Project description
SQL Schema MCP 服务器 一个用于查询需求分析对应的SQL table scheme信息的模型上下文协议服务器。该服务器包装了原始的get_schema_info API,让AI应用能够通过MCP协议获取SQL表结构信息。
主要功能
根据用户查询需求,分析需要用到的数据表、字段、枚举值、关联方式和易错点等信息。
可用工具
analyze_sql_schema - 分析SQL表结构和数据需求
必需参数:
- user (字符串): 用户信息,用于身份识别和权限控制
- business_id (字符串): 业务ID,标识具体的业务场景
- query (字符串): 用户的数据需求描述,例如"我需要查询最近一个月的用户活跃度数据"
- appkey (字符串): API密钥,用于接口认证
可选参数:
- document_id (字符串): 可选的文档ID,关联特定的文档上下文
- extra_result_params (列表): 额外的结果参数,用于定制返回结果
使用示例
- "查询用户最近30天的购买行为数据"
- "分析不同地区的销售业绩情况"
- "获取商品库存和销量的关联分析"
安装
使用 PIP
你可以通过 pip 安装 fit-growth-mcp-tools:
pip install fit-growth-mcp-tools
安装完成后,可以使用以下命令作为脚本运行:
python -m fit_growth_mcp_tools
配置
为 Claude.app 配置
在你的 Claude 设置中添加:
{
"mcpServers": {
"sql-schema": {
"command": "python",
"args": ["-m", "fit_growth_mcp_tools"]
}
}
}
为 Zed 配置
在你的 Zed settings.json 中添加:
{
"assistant": {
"version": "2",
"provider": {
"name": "anthropic",
"default_model": "claude-3-5-sonnet-20241022",
"low_speed_timeout_read_timeout": 30,
"low_speed_timeout": 30
}
},
"context_servers": [
{
"id": "sql-schema",
"type": "mcp",
"settings": {
"command": "python",
"args": ["-m", "fit_growth_mcp_tools"]
}
}
]
}
API 配置
服务器连接到内部API服务,需要确保:
- 网络可以访问 http://11.168.42.59:13699
- 拥有有效的 appkey 进行身份认证
- 具备相应的业务权限
注意事项
- 确保提供有效的appkey进行身份认证
- query描述应该明确具体,便于准确分析
- 网络连接需要能访问内部API服务
- 服务会自动处理网络连接失败、API认证失败等错误情况
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 fit_growth_mcp_tools-0.1.4.tar.gz.
File metadata
- Download URL: fit_growth_mcp_tools-0.1.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3addbe30a5fba7c5530715bd08a12891c9bd9d1fd9f3659e72b05d39b515f71c
|
|
| MD5 |
4191c8c35e84a659760d51ff1af653d2
|
|
| BLAKE2b-256 |
a3cbbdd2a1570370578c4d94f36cf6521b4e7f4406b5be0d0b5c0f887d9b6a78
|
File details
Details for the file fit_growth_mcp_tools-0.1.4-py3-none-any.whl.
File metadata
- Download URL: fit_growth_mcp_tools-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288bd9d6a27929b219cb558a17f1d24a71aef48fca6bb6b8d3f5dff148051111
|
|
| MD5 |
062122f31f5453b55c6e2d165b642073
|
|
| BLAKE2b-256 |
819af31c9cfa96991053ab1a7ba49641bbfc44ce0aa2f4e95b193e1613b494fc
|