Skip to main content

asktable_mcp_server project

Project description

asktable-mcp-server

Python Version PyPI Version

asktable-mcp-server 是一个为 AskTable 提供的 MCP 服务。它允许用户通过 AskTable 的接口与数据库进行交互,执行查询和获取数据。

快速开始

安装与配置

本地先安装uv工具,然后克隆该项目到本地

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

使用

目前支持stdio本地通信,你可以通过 AskTable 的客户端与 asktable-mcp-server 进行交互,执行查询和获取数据。

工作模式

asktable-mcp-server 支持两种工作模式:

1. SaaS版模式(默认)

连接到 AskTable 的 SaaS 服务,无需配置 base_url,系统会自动使用官方API地址。

2. 本地部署模式

连接到本地部署的 AskTable 服务,需要在环境变量中配置 base_url。

MCP Server 配置示例

现已经支持VS Code + ClineTrae阿里百炼智能体平台等。

配置参数

  • api_key: AskTable API密钥(必需)
  • datasource_id: 数据源ID(必需)
  • base_url: 本地部署的AskTable服务地址(可选)

SaaS版配置(推荐)

{
    "mcpServers":{
        "asktable-mcp-server":{
            "command":"uvx",
            "args":[
                "asktable-mcp-server@latest"
            ],
            "env":{
                "api_key": "your api_key",
                "datasource_id": "your datasource_id"
            }
        }
    }
}

本地部署版配置

{
    "mcpServers":{
        "asktable-mcp-server":{
            "command":"uvx",
            "args":[
                "asktable-mcp-server@latest"
            ],
            "env":{
                "api_key": "your api_key",
                "datasource_id": "your datasource_id",
                "base_url": "http://192.168.1.3:8030/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

asktable_mcp_server-0.1.2.tar.gz (4.0 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asktable_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b954b86a71420d2740b85a23143ad3f1b41abce8905885c3086deded32ffb38b
MD5 be3b682c517c4a58bcd5206ea408ae9c
BLAKE2b-256 9ab62cdcf10c09f4bd4a2d68dd33923566640d3943b20bfe97c8ca5780b42bbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for asktable_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80597d6bcc3a0245265b3204824d909c894ed9c625e5e89c7dce8ab70ac8a783
MD5 ab77b19fcf383ad8f56b4f6b66a7a14d
BLAKE2b-256 25bd577b8742810fb8de26b1edc56d07d1d69940e269f23e9c96748ccc392ed6

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