> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Connect AI coding tools to the Flow Payroll API and docs through the Model Context Protocol.

The Flow Payroll Model Context Protocol (MCP) server lets AI tools — Claude, Cursor, Windsurf, VS Code and others — interact directly with the Flow Payroll API and this documentation.

## What is MCP?

MCP is an open standard that lets AI applications securely access external tools and data. Connecting to the Flow Payroll MCP server gives an AI agent:

* **API access** to Flow Payroll operations
* **Documentation search** across these guides and the API reference
* **Code-generation** help for building Flow Payroll integrations

## Connect your tool

<Note>
  Use the **MCP** option in the contextual menu at the top of any page to copy the current server URL, or configure your client manually below.
</Note>

<Tabs>
  <Tab title="Cursor">
    Add to `~/.cursor/mcp.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "flowpayroll": {
          "url": "https://docs.flowpayroll.ai/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="Claude Desktop / Claude Code">
    Add to your MCP config:

    ```json theme={null}
    {
      "mcpServers": {
        "flowpayroll": {
          "url": "https://docs.flowpayroll.ai/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="Windsurf">
    Add to `~/.codeium/windsurf/mcp_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "flowpayroll": {
          "url": "https://docs.flowpayroll.ai/mcp"
        }
      }
    }
    ```
  </Tab>
</Tabs>

If a tool requires authentication, pass your `X-Auth-Token` via your MCP client's header configuration.

## Test the connection

1. Open your AI editor and start a new chat.
2. Ask something Flow-specific, e.g. *"How do I run a pay run with the Flow Payroll API?"* or *"Show me how to create an employee."*
3. The assistant should answer using Flow Payroll's docs and endpoints.
