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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fit_growth_mcp_tools-0.1.7.tar.gz
Algorithm Hash digest
SHA256 fd712bbb897bfc16ace965529a48f1386ecd4389307a7fbbc3852980f15429ed
MD5 0b15542414733569e44afc67017de35e
BLAKE2b-256 721e8c7e419d36e6b179cdff8906d5f562b6d437c9fda6e5b25c4ec9bcfbcd8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fit_growth_mcp_tools-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 05868ac895b76141a17c03925a809ed2d2fa544af6d60f0b992a9b67bd762a2b
MD5 0621616648957cdfb4944b54639f3e3b
BLAKE2b-256 d95dd059efcc34c8639f66d65fd874a078632bb8fb6862161ecaf41588ac046d

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