---
title: "Using the Stackby MCP Server"
description: "Connect AI assistants to your Stackby stacks and tables using the Model Context Protocol."
url: https://help.stackby.com/en/articles/457-using-the-stackby-mcp-server
collection: "Stackby AI"
updated: 2026-07-22
language: en
---

# Using the Stackby MCP Server

Connect AI assistants to your Stackby stacks and tables using the Model Context Protocol.

<table data-id="e5364972-8f47-4110-b7da-094e1b56b898" style="min-width: 146px;"><colgroup><col style="width: 121px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #eff6ff; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="80284a18-bc4f-43bc-b501-8a126756a3c8"><span style="color: #000000;"><strong>Plan availability</strong></span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="8e34956b-8314-4116-b6f0-42a6cb4815fa"><span style="color: #000000;">All plans</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #eff6ff; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="eb7fd512-3f9e-453b-9353-13eedb2ce525"><span style="color: #000000;"><strong>Permissions</strong></span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><ul><li><p data-id="e507a0cb-ca2d-4e68-a154-8c6866291495"><span style="color: #000000;"><strong>Admin / Owner</strong> — can set up API key, manage MCP access, read and write all stacks</span></p></li><li><p data-id="155cff08-9928-4e52-b405-d51a59f04876"><span style="color: #000000;"><strong>Member</strong> — can read and write stacks they have permission to access</span></p></li><li><p data-id="e706602e-1372-49ba-b885-8d331c10df55"><span style="color: #000000;"><strong>Viewer</strong> — can read data via MCP for stacks they have access to</span></p></li></ul></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #eff6ff; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="13519741-c7f4-48a7-bb1d-5a032822a02c"><span style="color: #000000;"><strong>Platform(s)</strong></span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="74a27ab4-7caa-41da-a432-812f7603b02c"><span style="color: #000000;">Works with any AI assistant that supports Model Context Protocol (Claude, ChatGPT, Cursor, and other MCP-compatible tools)</span></p></td></tr></tbody></table>

Stackby's MCP server lets you connect AI tools directly to your stacks and tables. Once connected, you can ask questions about your data, create and update records, and automate workflows—all through natural conversation with AI tools like Claude, ChatGPT, Cursor, and more.

## **What is Model Context Protocol (MCP)?**

Model Context Protocol (MCP) is an open standard that allows AI tools to securely connect to external data sources and services. With MCP, AI assistants can query your Stackby data, perform actions on your behalf, and present structured information—all while respecting your existing permissions and access controls.

## **What you can do with MCP**

The Stackby MCP Server enables several types of interactions between your AI tools and your data:

**Search and analyze data**

Ask your AI tool questions about your Stackby data:

-   "Show me all open tasks in my Project Tracker stack assigned to the engineering team"
    
-   "What are the top 5 most requested features in our feedback table?"
    
-   "Find all CRM contacts from Mumbai who haven't been followed up with this month"
    

## **Create records**

Add new information to your stacks through conversation:

-   "Add these 3 new leads to my Sales Pipeline stack"
    
-   "Create a new task called 'Update onboarding docs' in the Q2 Sprint table, due Friday"
    

## **Update existing records**

Make changes to your data without opening Stackby:

-   "Mark task #47 as Complete in the Sprint table"
    
-   "Update the budget for the 'Website Redesign' project to $12,000"
    

## **Manage your stack structure**

Use AI to extend your stacks with new tables and fields:

-   "Add a new column called 'Priority' with options Low, Medium, High to the Tasks table"
    
-   "Create a new table called 'Client Feedback' in my CRM stack"
    

## **Prerequisites of using Stackby MCP**

Before setting up the Stackby MCP Server, you will need:

-   A Stackby account (any plan)
    
-   A Stackby API key (see setup steps below)
    
-   An MCP-enabled AI host such as Claude, ChatGPT, or Cursor
    
-   Data already added or stored in at least one Stackby stack
    

## MCP key

  
"clientId": "sb\_cli\_VjQkRhT7\_Mx7gY6xi4ro-s-4",  
"clientSecret": "sb\_sec\_5mYL5ndGlswGx4l-91fUAfGZ9FW8YU51"

## **MCP setup steps**

Stackby's MCP server uses API key authentication. Follow these steps to connect your AI assistant.

## **Step 1: Get your Stackby API key**

1.  Log in to your Stackby account at [stackby.com](https://stackby.com).
    
2.  Click your profile avatar in the top-right corner and select Account Settings.
    
3.  Navigate to the API section.
    
4.  Copy your personal API key.
    

<table data-id="4de3f4d6-9c74-4cc3-9169-a7e07320f899" style="min-width: 25px;"><colgroup><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #eff6ff; padding: 6pt 9pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="90ff1584-cc5d-4dba-8ddf-892ae0140947"><span data-name="memo" data-type="emoji">📝</span><span style="color: #1d4ed8;"><strong> Note</strong></span></p><p data-id="68c30936-8733-48bf-b754-1868df12ad25"><span style="color: #374151;">Keep your API key private. Anyone with your API key can read and write data in your stacks on your behalf.</span></p></td></tr></tbody></table>

## **Step 2: Configure your AI assistant**

In your AI assistant's MCP configuration, add a new server entry with the following details:

### **Server URL**

[https://mcp.stackby.com/mcp](https://mcp.stackby.com/mcp)

### **Authentication header**

Stackby authenticates using a custom request header. Add the following header to your MCP server configuration:

x-api-key: YOUR\_STACKBY\_API\_KEY

### **Example: Claude Desktop configuration (claude\_desktop\_config.json)**

```javascript
{

  "mcpServers": {

    "stackby": {

      "command": "npx",

      "args": ["-y", "@anthropic-ai/mcp-client-http"],

      "env": {

        "MCP_SERVER_URL": "https://mcp.stackby.com/mcp",

        "MCP_HEADERS": "{\"x-api-key\": \"YOUR_STACKBY_API_KEY\"}"

      }

    }

  }

}
```

## **Step 3: Verify the connection**

Once configured, ask your AI assistant to run a quick check:

"Can you ping the Stackby MCP server and list my workspaces?"

If the connection is working, your AI assistant will return a list of your Stackby workspaces.

## **Tips for optimal MCP usage**

Get the most out of your MCP integration with these tips:

-   **Be specific:** Mention the stack name or table name when asking about data. The more context you give, the more accurate the results.
    
-   **Use natural language:** You don't need to know field IDs or table IDs—describe what you want in plain English.
    
-   **Describe your stack first:** For complex queries, briefly explain the structure of your stack before asking for data (e.g., "My CRM stack has a Contacts table with Name, Company, Status, and Last Contacted columns").
    
-   **Check permissions:** If you can't access certain data via MCP, verify that your API key belongs to a user who has permission to view or edit that stack.
    
-   **Think about data access:** Your AI tool will be able to read and write your Stackby data on your behalf. Only connect tools you trust.
    

## **Available MCP capabilities**

The Stackby MCP server currently provides the following tools:  

<table data-id="768fd439-ad19-40ca-af88-542eb57a8ef9" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #dbeafe; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #2563eb;"><p data-id="ff7658ae-2d4c-4d55-ba8d-bb3caed9275a"><span style="color: #000000;"><strong>Tool name</strong></span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; background-color: #dbeafe; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #2563eb;"><p data-id="0831e3e9-25a8-443f-aa53-db68ed9b2f56"><span style="color: #000000;"><strong>Description</strong></span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #2563eb #cccccc #cccccc;"><p data-id="e4e83838-9f9a-4aa3-8a4d-e69f76900f4b"><span style="color: #1e3a5f;">list_workspaces</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #2563eb #cccccc #cccccc;"><p data-id="8f44f501-33ef-4109-aae6-7de52e427b5f"><span style="color: #000000;">Lists all Stackby workspaces you have access to. Use this to find your workspace ID.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="316becc3-bcd9-4277-aac3-2cd6b803b0b6"><span style="color: #1e3a5f;">list_stacks</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="5da42e14-746a-4801-ad36-d7bc450cb2ac"><span style="color: #000000;">Lists all stacks (databases) you can access in your Stackby account. Optionally filter by workspaceId. Use this to get the stackId needed for other tools.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="793e1963-35e1-49cf-986b-0d44ac79890d"><span style="color: #1e3a5f;">list_tables</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="5953c342-6c7b-48c6-988d-3a0880763de8"><span style="color: #000000;">Gets all tables in a given stack, including their names and IDs.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="4341e403-aadb-4978-8f02-54f9b3296ac7"><span style="color: #1e3a5f;">describe_table</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="12069700-f89e-44b5-b0f6-429321355a5c"><span style="color: #000000;">Returns the full schema of a table: field names, types, IDs, and available views. Essential before filtering on select/multiSelect fields.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="57d9c846-4ad2-4557-9ce9-b644039ba2f1"><span style="color: #1e3a5f;">list_records</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="4cfe7250-9b80-4c5e-a19b-8f6c426d7149"><span style="color: #000000;">Lists rows from a table with support for filtering, sorting, pagination, and view selection. Always obtain stackId and tableId from list_stacks and list_tables first.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="7b96b75b-d12b-4e86-8ca4-1f4a9c9d41e0"><span style="color: #1e3a5f;">search_records</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="9a671215-f7f7-4fae-bfc6-f0fa85972fad"><span style="color: #000000;">Searches for rows containing a text string in one or more specified columns.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="24c20636-be0f-4eb1-834d-799dc25191d3"><span style="color: #1e3a5f;">get_record</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="fd1cd937-9bac-46c0-883b-33378e5320db"><span style="color: #000000;">Retrieves a single row by its record ID.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="3a4209a0-8aeb-4ac0-b365-5859a3095c49"><span style="color: #1e3a5f;">create_record</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="43797342-d872-4a3c-8d24-b15cf9634ad5"><span style="color: #000000;">Creates a new row in a table. Field values are keyed by column name.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="443ea109-501a-4385-b046-d559c66fee61"><span style="color: #1e3a5f;">update_records</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="4a6d0d2c-719e-42c3-a52a-f099f6eeef7a"><span style="color: #000000;">Updates up to 10 existing rows per request. Unspecified fields remain unchanged.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="16e25efe-fb5a-4c19-b663-efe4ad22eef0"><span style="color: #1e3a5f;">delete_records</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="070a2e97-d45b-4704-b6a2-ba2835e420b1"><span style="color: #000000;">Soft-deletes up to 10 rows by ID.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="68133c87-e28c-4ae5-aa1b-a0add69b8684"><span style="color: #1e3a5f;">create_table</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="a0276f9a-60d0-4cd0-8157-b0fb3c9f2d5d"><span style="color: #000000;">Creates a new table inside an existing stack.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="66ebb94d-71da-4814-b73e-108c60b17e30"><span style="color: #1e3a5f;">create_field</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="7f3911c1-f622-4e99-bb9e-423496c806cf"><span style="color: #000000;">Adds a new column (field) to a table. Supports types such as shortText, number, checkbox, singleOption, multipleOptions, dateAndTime, email, url, and more.</span></p></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="f3b56f1d-293e-4bb2-9eaa-a66ddb019df4"><span style="color: #1e3a5f;">ping</span></p></td><td colspan="1" rowspan="1" style="vertical-align: top; padding: 4pt 6pt; overflow: hidden; overflow-wrap: break-word; border-width: 0.5pt; border-style: solid; border-color: #cccccc;"><p data-id="ac4a31ff-3389-440a-a4c9-7a650e45bd93"><span style="color: #000000;">Pings the MCP server to verify it is running and reachable.</span></p></td></tr></tbody></table>

## **Limitations**

Keep these limitations in mind when using the Stackby MCP Server:

-   **Rate limits:** MCP server calls are subject to Stackby's standard API rate limits.
    
-   **Batch size:** Creating, updating, and deleting records is limited to 10 records per request.
    
-   **Soft deletes:** Records deleted via MCP are soft-deleted and may be recoverable from within Stackby.
    
-   **Permission enforcement:** The MCP server respects your existing Stackby permissions. You can only access or modify data that your API key's user account has permission to access.
    
-   **Schema changes:** Tool names, behaviors, and available capabilities may change as the MCP server is updated.
    

## **FAQs**

**Can I use MCP with any stack I have access to?**

Yes. If your Stackby account has access to a stack, the MCP server can read and write data within it, subject to your permission level. Viewer-level access allows reading via MCP but not creating or updating records.

**What AI assistants work with Stackby's MCP Server?**

Any AI assistant that supports the Model Context Protocol can connect to Stackby's MCP Server. This includes Claude, ChatGPT, Cursor, and other MCP-compatible tools. Check your AI assistant's documentation to confirm MCP support.

**How do I revoke access if I no longer want my AI assistant to access my stacks?**

Navigate to Account Settings > API in Stackby and regenerate your API key. This will immediately invalidate your old key and disconnect any AI tools that were using it.

**Does using MCP count against my Stackby limits?**

MCP uses the Stackby public API under the hood and will count against existing API rate limits. Records created using MCP count against your plan's row limits.

**Are there additional costs for using MCP?**

No. The MCP integration is available with your current Stackby plan at no extra charge, subject to standard API rate limits.

**What happens if I try to update a field I don't have permission to modify?**

The MCP server will return an error, just as the Stackby API would. Your AI assistant should communicate this limitation to you and suggest alternatives.

**Can I use MCP to create entirely new stacks?**

Currently, the MCP server supports creating tables and fields within existing stacks, but does not support creating brand-new stacks. Stack creation should be done directly within the Stackby interface.
