Button Integration with AskTable MCP
By integrating the AskTable MCP extension, you can directly query databases in Coze using natural language. With simple configuration, your AI assistant will be able to analyze data.
Step 1: Open the Button Space
- Log in to the Coze platform
- Enter your Button space
- Click on Extensions

Step 2: Add a Custom Extension
- Select Add Custom Extension

Step 3: Configure the JSON File
- Before starting the configuration, you need to first get an API-Key and get a data source ID in AskTable.
- Copy the following JSON configuration to create a connection to AskTable's MCP (SSE) service. If you have other special requirements, please refer to the documentation
{
"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
}
}
}
- Replace
YOUR_API_KEY
with the API Key you obtained from AskTable - Replace
YOUR_DATASOURCE_ID
with your data source ID - Click Confirm to save the configuration

Step 4: Enable the MCP Extension
- After saving the configuration, find the AskTable MCP extension you just created in the list of extensions
- Enable this extension
🎉 Configuration Completed
Congratulations! You have successfully integrated the AskTable MCP extension into Coze!

After the configuration is completed, you can start having intelligent conversations with your data!
Example Question
Query the average scores of all teachers in teaching, research, and services, and select the top 5 departments with the highest average teaching scores.
Query Result Display
Here is the query result obtained using the AskTable MCP service:

For further assistance, please contact us.