Configuration and administration
Let AI clients call AskTable through MCP
Expose AskTable's query and management capabilities to AI clients through MCP.
AskTable's MCP Server exposes data questions and management capabilities as tools through Model Context Protocol, allowing Claude, MCP Inspector, and other MCP-capable AI clients to call them directly. It is a single server named asktable, with 43 tools. MCP does not bypass AskTable permissions: credential identity, API-Key type, and current project permissions still determine what the client can call.
Before you begin
- An AskTable project and an API Key. Use a personal Key for an external Agent acting as you. Trusted business systems use system integration Keys:
askerfor questions andadminfor infrastructure management. - Creation location: main navigation → “Agent integration”. It defaults to “Personal Key”; only project owners and administrators manage “System integration Key”. Only the owner can view and revoke a personal Key; administrators cannot view other users' personal Keys.
- The client supports Streamable HTTP or stdio. Use HTTP in production.
- Confirm the URL first; the three deployment types differ, as shown below.
- UI entry: bottom avatar → “Documentation” → “MCP service,” which opens the URL for the current deployment.
Steps
Confirm your MCP URL
| Deployment | URL |
|---|---|
| SaaS (cloud.asktable.com) | https://mcp.asktable.com/ |
Private deployment, all-in-one image (in-container nginx proxies /mcp/) | https://<your-AskTable-site>/mcp/ |
Private deployment, standalone asktable-mcp container | http://<mcp-host>:8690/ |
The standalone container's HTTP transport accepts any path without requiring the /mcp/ prefix. The all-in-one image exposes only /mcp/ externally; nginx strips the prefix before forwarding to 8690.
Enter the URL and Key in the client
Streamable HTTP configuration (field names depend on your client):
{
"mcpServers": {
"asktable": {
"type": "http",
"url": "https://mcp.asktable.com/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}The Authorization header is required. The server creates an independent client instance for each request and does not retain state across tenants.
Confirm that the client can list tools
After connecting, ask the client to list tools; you should see 43. They are grouped by domain below:
| Domain | Tools | Count |
|---|---|---|
| datasource | datasource_list, datasource_get, datasource_create, datasource_update, datasource_delete, datasource_upload_file, datasource_test_connection | 7 |
| meta | datasource_meta_get, datasource_meta_export, meta_sync, meta_import | 4 |
| training | training_pair_list, training_pair_create, training_pair_update, training_pair_delete | 4 |
| field | field_set_visibility, field_set_description, field_set_ai_value_index | 3 |
| table | table_set_description | 1 |
| role | role_list, role_get, role_create, role_update, role_delete | 5 |
| policy | policy_list, policy_get, policy_create, policy_update, policy_delete | 5 |
| chat | chat_ask, chat_followup | 2 |
| conversation | conversation_list, conversation_get, conversation_delete | 3 |
| data_agent | data_agent_list, data_agent_get, data_agent_create, data_agent_update, data_agent_delete | 5 |
| project | project_get, project_preference_get, project_update, project_preference_update | 4 |
List tools accept page and size (size is capped at 200); omitted values use backend defaults.
Ask with chat_ask, then follow up with chat_followup
Use data_agent_list to find an available Agent, then call chat_ask. New conversations require data_agent_id and question. Data source scope comes from the Agent; datasource_ids alone cannot replace it. Continue with chat_followup, providing conversation_id and question without selecting another Agent or data role. If the client provides progressToken, these tools send progress notifications between each poll.
A personal Key uses its owner's current Agent access, data role, and variables; tool parameters cannot switch roles. A system integration Key can call all project Agents and specify a role and variables when creating a conversation. admin also manages infrastructure, but neither system Key type can read or write personal configuration.
Delete tools (*_delete) require confirm to be true; omitting it is treated as a parameter error.
Use stdio for local debugging
For standalone debugging or MCP Inspector, start stdio in the mcp/ directory:
bun src/main.ts --stdioIn stdio mode, the Key comes from environment variables:
export ASKTABLE_API_URL='https://<your-AskTable-site>'
export ASKTABLE_API_KEY='YOUR_API_KEY'The server uses ASKTABLE_API_URL to target AskTable's API, defaulting to https://api.asktable.com. In the all-in-one image it is set to http://127.0.0.1:8688, using localhost within the same container.
Secure credentials before production
Client configuration files are often synchronized or backed up. Use the client's secret management to inject Authorization in production rather than leaving the Key in plaintext in a configuration repository. If a Key leaks, immediately revoke or delete it in “Agent integration” and create a replacement.
Key constraints
| Item | Value or default | Where to change it |
|---|---|---|
| Server name and tool count | Single asktable server, 43 tools | No UI switch |
| Cloud URL | https://mcp.asktable.com/ | Bottom avatar → “Documentation” → “MCP service” |
| Private deployment (all-in-one image) | <your-site>/mcp/ | See Private deployment (Docker) |
| Private deployment (standalone container) | http://<mcp-host>:8690/ | Container ports and ASKTABLE_API_URL |
| Authentication | Authorization: Bearer <API-Key>, required | Client configuration |
| New question | chat_ask requires data_agent_id; personal identities cannot override the data role | Tool inputs and current member permissions |
ASKTABLE_API_URL | Default https://api.asktable.com | MCP container environment variables |
List pagination size | Maximum 200; omission uses backend defaults | Tool arguments |
| Delete tools | Must explicitly pass confirm: true | Tool arguments |
| Audit logs | One JSON line per call to stderr; only the first 16 characters of the Key's sha256 are kept | Container logs |
| Production transport | Streamable HTTP; stdio is for local debugging only | Startup options |
Troubleshooting
| Symptom | Identifying condition | Resolution |
|---|---|---|
Client reports InvalidRequest | Server maps HTTP 401 or 404 to this error | Check that Authorization has the Bearer prefix, the Key is valid, and the URL is correct |
Client reports InvalidParams | Server maps HTTP 422 to this error | Correct parameter types or required fields according to the tool schema |
Client reports InternalError | Upstream returned another status code | Check httpStatus preserved in the error object, then correlate by time in AskTable service logs |
Calling *_delete reports a parameter error | Arguments lack confirm: true | Explicitly pass confirm: true |
chat_ask cannot create a conversation | Only data sources were supplied, or the Agent is unavailable | Call data_agent_list first and pass an accessible data_agent_id |
System admin Key is denied access to personal resources | A tool tries to read or modify personal configuration | Use a personal identity with resource access; infrastructure permission is separate from personal resource permission |
| Standalone container is unreachable | http://<mcp-host>:8690/ cannot be reached | Confirm the container port is published and ASKTABLE_API_URL points to an accessible backend |
/mcp/ returns 404 in the all-in-one image | Port 8690 is not running in the container | Check the in-container mcp-server process and nginx proxy configuration |
meta_sync immediately returns {"status":"triggered"} | wait was omitted | Expected behavior; to wait for results, pass wait, poll_interval_ms, and max_attempts |
| List tools return fewer entries than expected | size was omitted, using backend default pagination | Explicitly pass size (up to 200) and page |
| Client never receives progress | Client did not provide progressToken | Progress notifications are sent only when the client provides progressToken |
Next steps
- Operate AskTable directly in a terminal: Command-line tool
- Handle requests and responses yourself without an AI client: OpenAPI
- Run a separate MCP container in a private deployment: Private deployment (Docker)