
sidebar.wechat

sidebar.feishu
sidebar.chooseYourWayToJoin

sidebar.scanToAddConsultant
Choosing the right deployment method is the first step in using MCP. AskTable MCP Server provides four deployment modes to suit different use cases.
This article will help you understand the characteristics of each deployment mode and choose the best solution for your needs.
AskTable MCP Server supports four deployment modes:
| Mode | Service Location | Communication Protocol | Installation Required | Applicable Scenario |
|---|---|---|---|---|
| SaaS SSE | Cloud | SSE | None | Individual users, quick experience |
| SaaS Stdio | Cloud | Stdio | Package needed | Requires local process control |
| Local SSE | Local | SSE | Service deployment needed | Enterprise intranet, data security |
| Local Stdio | Local | Stdio | Package needed | Local development, offline use |
Choose SaaS SSE if you:
Choose SaaS Stdio if you:
Choose Local SSE if you:
Choose Local Stdio if you:
✅ Zero Installation: No software to install, use directly ✅ Simple Configuration: Only need one URL ✅ Automatic Updates: Server-side automatic upgrades, no manual maintenance ✅ High Availability: Cloud service, stable and reliable
Step 1: Get Credentials
Log in to AskTable and get:
Step 2: Configure Claude Desktop
Edit the config file (claude_desktop_config.json):
{
"mcpServers": {
"asktable": {
"type": "sse",
"url": "https://mcp.asktable.com/sse/?api_key=YOUR_API_KEY&datasource_id=YOUR_DATASOURCE_ID",
"headers": {},
"timeout": 300,
"sse_read_timeout": 300
}
}
}
Step 3: Restart Claude Desktop
After saving the configuration, restart Claude Desktop to use.
| Parameter | Description | Default | Recommended |
|---|---|---|---|
api_key | AskTable API key | Required | - |
datasource_id | Datasource ID | Required | - |
timeout | Request timeout (seconds) | 300 | 300-600 |
sse_read_timeout | SSE connection timeout (seconds) | 300 | 300-600 |
✅ Local Process: MCP Server runs locally, better control ✅ Visible Logs: Can view detailed operation logs ✅ Easy Debugging: Convenient for troubleshooting
Step 1: Install MCP Server
Using uv (recommended):
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Test installation
uvx asktable-mcp-server@latest --help
Or using pip:
pip install asktable-mcp-server
Step 2: Configure Claude Desktop
{
"mcpServers": {
"asktable": {
"command": "uvx",
"args": ["asktable-mcp-server@latest"],
"env": {
"API_KEY": "YOUR_API_KEY",
"DATASOURCE_ID": "YOUR_DATASOURCE_ID"
}
}
}
}
Step 3: Restart Claude Desktop
| Variable | Description | Required |
|---|---|---|
API_KEY | AskTable API key | ✅ |
DATASOURCE_ID | Datasource ID | ✅ |
BASE_URL | Custom API address | ❌ |
✅ Data Security: Data stays within the intranet ✅ Multi-User: Supports team sharing ✅ Unified Management: Centralized configuration and monitoring ✅ High Performance: Direct intranet connection, low latency
AskTable's All-in-One image already includes MCP SSE Server.
Start Service:
docker run -d \
--name asktable \
-p 8080:8080 \
-e DATABASE_URL=postgresql://user:pass@host:5432/db \
registry.cn-shanghai.aliyuncs.com/datamini/asktable:latest
MCP Server Address:
http://your_server_ip:8080/mcp/sse/
Configure Claude Desktop:
{
"mcpServers": {
"asktable": {
"type": "sse",
"url": "http://your_server_ip:8080/mcp/sse/?api_key=YOUR_API_KEY&datasource_id=YOUR_DATASOURCE_ID",
"headers": {},
"timeout": 300,
"sse_read_timeout": 300
}
}
}
Using Docker:
docker run -d \
--name asktable-mcp-server \
-p 8095:8095 \
-e API_KEY=your_api_key \
-e DATASOURCE_ID=your_datasource_id \
-e BASE_URL=http://your_asktable_server:8080/api \
registry.cn-shanghai.aliyuncs.com/datamini/asktable-mcp-server:latest
MCP Server Address:
http://your_server_ip:8095/sse/
Configure Claude Desktop:
{
"mcpServers": {
"asktable": {
"type": "sse",
"url": "http://your_server_ip:8095/sse/?api_key=YOUR_API_KEY&datasource_id=YOUR_DATASOURCE_ID",
"headers": {},
"timeout": 300,
"sse_read_timeout": 300
}
}
}
Using Nginx Reverse Proxy:
server {
listen 80;
server_name mcp.your-company.com;
location /mcp/ {
proxy_pass http://localhost:8095/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
}
}
Configure Claude Desktop:
{
"mcpServers": {
"asktable": {
"type": "sse",
"url": "http://mcp.your-company.com/mcp/sse/?api_key=YOUR_API_KEY&datasource_id=YOUR_DATASOURCE_ID",
"headers": {},
"timeout": 300,
"sse_read_timeout": 300
}
}
}
✅ Fully Local: All components run locally ✅ Offline Work: No network connection needed ✅ Data Security: Data stays on local machine
Step 1: Install MCP Server
uvx asktable-mcp-server@latest
Step 2: Configure Claude Desktop
{
"mcpServers": {
"asktable": {
"command": "uvx",
"args": ["asktable-mcp-server@latest"],
"env": {
"API_KEY": "YOUR_API_KEY",
"DATASOURCE_ID": "YOUR_DATASOURCE_ID",
"BASE_URL": "http://localhost:8080/api"
}
}
}
}
Step 3: Restart Claude Desktop
| Feature | SaaS SSE | SaaS Stdio | Local SSE | Local Stdio |
|---|---|---|---|---|
| Zero Installation | ✅ | ❌ | ❌ | ❌ |
| Data Security | ⚠️ | ⚠️ | ✅ | ✅ |
| Multi-User | ✅ | ❌ | ✅ | ❌ |
| Offline Work | ❌ | ❌ | ⚠️ | ✅ |
| Configuration Difficulty | ⭐ | ⭐⭐ | ⭐⭐⭐ | ⭐⭐ |
| Maintenance Cost | ⭐ | ⭐ | ⭐⭐⭐ | ⭐⭐ |
| Metric | SaaS SSE | SaaS Stdio | Local SSE | Local Stdio |
|---|---|---|---|---|
| Connection Latency | Medium | Low | Low | Low |
| Query Latency | Medium | Medium | Low | Low |
| Concurrency | High | Low | High | Low |
| Stability | High | Medium | Medium | Medium |
Recommended Solution: Local SSE Mode
Deployment Architecture:
[User] → [Nginx] → [MCP Server] → [AskTable] → [Database]
Key Configuration:
Recommended Solution: SaaS SSE Mode
Advantages:
Scenario: Part of the data is in the cloud, part is in the intranet
Solution: Configure multiple MCP Servers
{
"mcpServers": {
"asktable-cloud": {
"type": "sse",
"url": "https://mcp.asktable.com/sse/?api_key=KEY1&datasource_id=DS1"
},
"asktable-local": {
"type": "sse",
"url": "http://internal-mcp:8095/sse/?api_key=KEY2&datasource_id=DS2"
}
}
}
Symptom: Cannot connect to MCP Server
Troubleshooting Steps:
curl -v URLSymptom: Tools fail to load
Troubleshooting Steps:
uvx asktable-mcp-server@latestSymptom: API Key invalid prompt
Troubleshooting Steps:
Choosing the right deployment mode requires considering:
Quick Decision:
Next Steps:
Related Reading:
Technical Exchange:
sidebar.noProgrammingNeeded
sidebar.startFreeTrial