Skip to content
AskTable

Documentation feedback

Current pageMCP/en/integrations/mcp

0 / 5,000

Your feedback will be sent to the maintenance team.

Go to console
Go to console

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: asker for questions and admin for 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

DeploymentURL
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 containerhttp://<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:

DomainToolsCount
datasourcedatasource_list, datasource_get, datasource_create, datasource_update, datasource_delete, datasource_upload_file, datasource_test_connection7
metadatasource_meta_get, datasource_meta_export, meta_sync, meta_import4
trainingtraining_pair_list, training_pair_create, training_pair_update, training_pair_delete4
fieldfield_set_visibility, field_set_description, field_set_ai_value_index3
tabletable_set_description1
rolerole_list, role_get, role_create, role_update, role_delete5
policypolicy_list, policy_get, policy_create, policy_update, policy_delete5
chatchat_ask, chat_followup2
conversationconversation_list, conversation_get, conversation_delete3
data_agentdata_agent_list, data_agent_get, data_agent_create, data_agent_update, data_agent_delete5
projectproject_get, project_preference_get, project_update, project_preference_update4

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 --stdio

In 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

ItemValue or defaultWhere to change it
Server name and tool countSingle asktable server, 43 toolsNo UI switch
Cloud URLhttps://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
AuthenticationAuthorization: Bearer <API-Key>, requiredClient configuration
New questionchat_ask requires data_agent_id; personal identities cannot override the data roleTool inputs and current member permissions
ASKTABLE_API_URLDefault https://api.asktable.comMCP container environment variables
List pagination sizeMaximum 200; omission uses backend defaultsTool arguments
Delete toolsMust explicitly pass confirm: trueTool arguments
Audit logsOne JSON line per call to stderr; only the first 16 characters of the Key's sha256 are keptContainer logs
Production transportStreamable HTTP; stdio is for local debugging onlyStartup options

Troubleshooting

SymptomIdentifying conditionResolution
Client reports InvalidRequestServer maps HTTP 401 or 404 to this errorCheck that Authorization has the Bearer prefix, the Key is valid, and the URL is correct
Client reports InvalidParamsServer maps HTTP 422 to this errorCorrect parameter types or required fields according to the tool schema
Client reports InternalErrorUpstream returned another status codeCheck httpStatus preserved in the error object, then correlate by time in AskTable service logs
Calling *_delete reports a parameter errorArguments lack confirm: trueExplicitly pass confirm: true
chat_ask cannot create a conversationOnly data sources were supplied, or the Agent is unavailableCall data_agent_list first and pass an accessible data_agent_id
System admin Key is denied access to personal resourcesA tool tries to read or modify personal configurationUse a personal identity with resource access; infrastructure permission is separate from personal resource permission
Standalone container is unreachablehttp://<mcp-host>:8690/ cannot be reachedConfirm the container port is published and ASKTABLE_API_URL points to an accessible backend
/mcp/ returns 404 in the all-in-one imagePort 8690 is not running in the containerCheck the in-container mcp-server process and nginx proxy configuration
meta_sync immediately returns {"status":"triggered"}wait was omittedExpected behavior; to wait for results, pass wait, poll_interval_ms, and max_attempts
List tools return fewer entries than expectedsize was omitted, using backend default paginationExplicitly pass size (up to 200) and page
Client never receives progressClient did not provide progressTokenProgress notifications are sent only when the client provides progressToken

Next steps