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

# MCP server for agents

Give your coding agent access to indexed, searchable Bark documentation by adding our MCP server: `https://docs.second.tech/mcp`

## Connect your tool

<Tabs>
  <Tab title="Claude Code">
    Run the following command in your terminal:

    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    claude mcp add --transport http second-docs https://docs.second.tech/mcp
    ```

    This adds the server for your current project. To make it available across all your projects, use the `--scope user` flag:

    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    claude mcp add --transport http second-docs --scope user https://docs.second.tech/mcp
    ```

    To share it with your team via version control, use `--scope project` which writes a `.mcp.json` file to your project root:

    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    claude mcp add --transport http second-docs --scope project https://docs.second.tech/mcp
    ```

    Once added, type `/mcp` inside Claude Code to verify the server is connected.
  </Tab>

  <Tab title="Codex">
    Run the following command in your terminal:

    ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
    codex mcp add second-docs --url https://docs.second.tech/mcp
    ```

    This adds the server to your global Codex configuration at `~/.codex/config.toml`.

    You can also add it manually by editing the config file directly:

    ```toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
    [mcp_servers.second-docs]
    url = "https://docs.second.tech/mcp"
    ```

    For project-level configuration, create `.codex/config.toml` in your project root with the same content.

    Once added, type `/mcp` inside Codex to verify the server is connected.
  </Tab>

  <Tab title="Cursor">
    Open your MCP configuration file. For global access, edit `~/.cursor/mcp.json`. For project-level access, create `.cursor/mcp.json` in your project root.

    Add the following:

    ```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
    {
      "mcpServers": {
        "second-docs": {
          "url": "https://docs.second.tech/mcp"
        }
      }
    }
    ```

    Restart Cursor after saving the file.

    You can also add it through the settings UI: open **Settings**, search for **MCP**, click **Add new MCP server**, and enter the URL above.
  </Tab>
</Tabs>
