asktable_mcp_server project
Project description
asktable-mcp-server
asktable-mcp-server 是为 AskTable 提供的 MCP 服务,支持通过 Stdio 或 SSE 协议与 AskTable SaaS 或本地部署服务交互。
快速开始
安装与配置
本地先安装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
Release history Release notifications | RSS feed
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.5.tar.gz
(14.1 kB
view details)
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 asktable_mcp_server-0.1.5.tar.gz.
File metadata
- Download URL: asktable_mcp_server-0.1.5.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371085486ab2a7cc976b29299a189f4dae9ec36438588b2fa98ac8e1b313b5cf
|
|
| MD5 |
6dccad2de7d511c50bae16be52c1098f
|
|
| BLAKE2b-256 |
971f0db9dd4fc29ac7cdcbcca619b63508ebef2b23478bb09882025955225c06
|
File details
Details for the file asktable_mcp_server-0.1.5-py3-none-any.whl.
File metadata
- Download URL: asktable_mcp_server-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b7e3070eab78bdaa5a0fcae2468e40125b78f0a679a03b71766f491df508078
|
|
| MD5 |
9358cc33e09980f791c0258dd39a2f75
|
|
| BLAKE2b-256 |
0b1536ec237677ff0edec3e80b602367a60ba5f44f4c4dc2e74bb2f64cb467bb
|