Skip to main content

asktable_mcp_server project

Project description

asktable-mcp-server

Python Version PyPI Version

asktable-mcp-server 是为 AskTable 提供的 MCP 服务,支持通过 Stdio 或 SSE 协议与 AskTable SaaS 或本地部署服务交互。

Case

快速开始

安装与配置

本地先安装uv配置工具。

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

参数说明

  • api_key:AskTable API 密钥(必需,环境变量)
  • datasource_id:数据源ID(必需,环境变量)
  • base_url:本地IP服务地址(可选,填写则走本地部署,不填则走SaaS)

启动命令示例

在使用之前需先进行以下配置

  • Stdio 模式(本地或SaaS):

    uvx asktable-mcp-server@latest --transport stdio
    
  • SSE 模式(本地或SaaS):

    #sass版
    uvx --from asktable-mcp-server@latest python -m asktable_mcp_server.sse_server
    
    #本地版
    #开启服务后会占用本地的8095端口
    uvx --from asktable-mcp-server@latest python -m asktable_mcp_server.sse_server --base_url http://your_local_ip:port/api
    

配置示例

配置mcpServers_json

以下对应需要对 `mcpServers json”进行配置的情况,根据你不同的启动命令和平台兼容的方式来选择对应的模式。

Stdio + SaaS
{
  "mcpServers": {
    "asktable-mcp-server": {
      "command": "uvx",
      "args": ["asktable-mcp-server@latest", "--transport", "stdio"],
      "env": {
        "api_key": "your_api_key",
        "datasource_id": "your_datasource_id"
      }
    }
  }
}
Stdio + 本地部署
{
  "mcpServers": {
    "asktable-mcp-server": {
      "command": "uvx",
      "args": ["asktable-mcp-server@latest", "--transport", "stdio"],
      "env": {
        "api_key": "your_api_key",
        "datasource_id": "your_datasource_id",
        "base_url": "http://your_local_ip:port/api"
      }
    }
  }
}
SSE
{
  "mcpServers": {    
    "asktable-mcp-server": {
      "url": "http://localhost:8095/sse/?apikey=your_apikey&datasouce_id=your_datasouce_id",
      "headers": {},
      "timeout": 300,
      "sse_read_timeout": 300
    }
  }
}

配置SSE URL

http://localhost:8095/sse/?apikey=your_apikey&datasouce_id=your_datasouce_id

如需进一步帮助,请查阅官方文档或联系我们。

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

asktable_mcp_server-0.1.6.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

asktable_mcp_server-0.1.6-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file asktable_mcp_server-0.1.6.tar.gz.

File metadata

  • Download URL: asktable_mcp_server-0.1.6.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for asktable_mcp_server-0.1.6.tar.gz
Algorithm Hash digest
SHA256 06acdfffa24a6970e9aded8eacd3f1b9d9ba12c535324e0c5ba51b11ac4c8b5d
MD5 4b89176950889b45a09a176536b49ccc
BLAKE2b-256 c819805d1f0b76aaca0f26a5849a0e9fedf5e31d5cfc3ee0b41eb45efa43c2f4

See more details on using hashes here.

File details

Details for the file asktable_mcp_server-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for asktable_mcp_server-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 22f767b2d4208f44884b10005d21666080bc92ebb8bf12b48a41554841d3a1d8
MD5 19dffbbb4c360ba84b4319da617ca758
BLAKE2b-256 9dc65619788f24574f588ebe4f8f56fadcd607ed255fde40e26f514e7cb4d98b

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