> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/interface-and-deployment/mcp-reference.md).

# MCP Reference

The StackAI MCP Server lets AI clients like Claude Desktop connect directly to your StackAI workflows as tools.

Set it up once, and any MCP-compatible AI assistant can discover and call your deployed agents without writing custom integration code.

### In this section

<table data-view="cards"><thead><tr><th>Topic</th><th data-card-target data-type="content-ref">Page</th></tr></thead><tbody><tr><td><strong>StackAI MCP Server</strong><br>Connect Claude, Cursor, and other MCP clients to your deployed StackAI workflows.</td><td><a href="/spaces/FSlso1Kjob5CLDrh0dVn/pages/x1OkB9xKnbJUtHMmNP32">/spaces/FSlso1Kjob5CLDrh0dVn/pages/x1OkB9xKnbJUtHMmNP32</a></td></tr></tbody></table>

### What you can do with MCP

* Expose StackAI workflows as callable tools inside Claude, Cursor, or other MCP clients.
* Let users invoke your agents by name from within their AI assistant of choice.
* Combine StackAI's workflow capabilities with the conversational interface of any MCP client.

### Get started

* Start with the [**StackAI MCP Server**](/interface-and-deployment/mcp-reference/stackai-mcp-server.md) guide to configure the server URL and authentication.
* Add the server to your MCP client configuration.
* Test by asking the AI client to call one of your StackAI workflows.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stackai.com/interface-and-deployment/mcp-reference.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
