Skip to main content

Add your description here

Project description

一个用于查询需求分析对应的SQL table scheme信息的模型上下文协议服务器。该服务器包装了原始的get_schema_info API,让AI应用能够通过MCP协议获取SQL表结构信息。

主要功能

根据用户查询需求,分析需要用到的数据表、字段、枚举值、关联方式和易错点等信息。

可用工具

analyze_sql_schema - 分析SQL表结构和数据需求

必需参数:

  • user (字符串): 用户信息,用于身份识别和权限控制
  • query (字符串): 用户的数据需求描述,例如"我需要查询最近一个月的用户活跃度数据"
  • appkey (字符串): API密钥,用于接口认证

使用示例

  • "查询用户最近30天的购买行为数据"
  • "分析不同地区的销售业绩情况"
  • "获取商品库存和销量的关联分析"

安装

使用 PIP

你可以通过 pip 安装 fit-growth-mcp-tools:

pip install fit-growth-mcp-tools

安装完成后,可以使用以下命令作为脚本运行:

python -m fit_growth_mcp_tools

配置

在各类大模型客户端中 配置 MCP 文件

{
  "mcpServers": { 
    "fit_data_tool": {
      "disabled": false,
      "command": "python",
      "args": [
       "-m", "fit_growth_mcp_tools"
      ],
      "env": { 
        "SCHEMA_API_TOKEN": "app-xx",
        "SQL_API_TOKEN": "app-xx"
      }
    }
    
  }
}

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

fit_growth_mcp_tools-0.1.8.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

fit_growth_mcp_tools-0.1.8-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file fit_growth_mcp_tools-0.1.8.tar.gz.

File metadata

File hashes

Hashes for fit_growth_mcp_tools-0.1.8.tar.gz
Algorithm Hash digest
SHA256 05429850f9ade4988fcefe6a7083138b30ba10043694db3508fc4ff3d85786e8
MD5 4f19abbb024ee42d2f5fe7a62f020fba
BLAKE2b-256 415968a47402a17f0901521e795b467979f22e0a87100e3ae326c64dd72c20e1

See more details on using hashes here.

File details

Details for the file fit_growth_mcp_tools-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for fit_growth_mcp_tools-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fc427857b826cf15a8c96f9f020778b0df94eba6ab99aceac9b75457999d2f0c
MD5 65a1b9ea3ebd936fa8eec4adb41028fb
BLAKE2b-256 ccd502808ce2d9fd8b21727d0ed992de60cad5042a4cc7fe64a55fb9e5baf072

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