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

# Documentation MCP Server

> Connect Claude, Cursor, and other AI clients to SQD documentation via MCP — search and retrieve any docs page directly from your AI assistant in real time.

## Access the SQD MCP server

**Server URL**: `https://docs.sqd.dev/mcp`

## Use the SQD MCP server

Connect the SQD MCP server to your preferred AI tools.

<Tabs>
  <Tab title="Claude Code">
    ```bash theme={"system"}
    claude mcp add --transport http SQD https://docs.sqd.dev/mcp
    ```

    Test the connection:

    ```bash theme={"system"}
    claude mcp list
    ```

    See the [Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code/mcp#installing-mcp-servers) for more details.
  </Tab>

  <Tab title="Claude">
    <Steps>
      <Step title="Add the SQD MCP server to Claude">
        1. Navigate to the [Connectors](https://claude.ai/settings/connectors) page in Claude settings.
        2. Select **Add custom connector**.
        3. Add the SQD MCP server:
           * Name: `SQD`
           * URL: `https://docs.sqd.dev/mcp`
        4. Select **Add**.
      </Step>

      <Step title="Access the MCP server in your chat">
        1. When using Claude, select the attachments button (the plus icon).
        2. Select the SQD MCP server.
        3. Ask Claude questions about SQD documentation.
      </Step>
    </Steps>

    See the [Model Context Protocol documentation](https://modelcontextprotocol.io/docs/tutorials/use-remote-mcp-server) for more details.
  </Tab>

  <Tab title="Cursor">
    <Steps>
      <Step title="Open MCP settings">
        1. Use <kbd>Command</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> on Windows) to open the command palette.
        2. Search for "Open MCP settings".
        3. Select **Add custom MCP**. This opens the `mcp.json` file.
      </Step>

      <Step title="Configure the SQD MCP server">
        In `mcp.json`, add:

        ```json theme={"system"}
        {
          "mcpServers": {
            "SQD": {
              "url": "https://docs.sqd.dev/mcp"
            }
          }
        }
        ```
      </Step>

      <Step title="Test the connection">
        In Cursor's chat, ask "What tools do you have available?" Cursor should show the SQD MCP server as an available tool.
      </Step>
    </Steps>

    See the [Cursor documentation](https://docs.cursor.com/en/context/mcp#installing-mcp-servers) for more details.
  </Tab>

  <Tab title="VS Code">
    Create a `.vscode/mcp.json` file and add:

    ```json theme={"system"}
    {
      "servers": {
        "SQD": {
          "type": "http",
          "url": "https://docs.sqd.dev/mcp"
        }
      }
    }
    ```

    See the [VS Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more details.
  </Tab>
</Tabs>

## Available tools

### `search_sqd_documentation`

Semantic search across SQD documentation. Returns contextual content with page titles and direct links. Best for broad or conceptual questions.

**Parameters:**

* `query` (string, required). Search query

**Example queries:**

* "How do I query EVM logs with Portal API?"
* "Show me Solana indexing examples"
* "What are the supported networks?"

### `query_docs_filesystem_sqd_documentation`

Run read-only shell commands against a virtual filesystem containing all SQD documentation pages and OpenAPI specs. Use this when you need exact keyword matching, regex search, structural exploration, or full page content.

**Parameters:**

* `command` (string, required). A shell command (`rg`, `grep`, `cat`, `head`, `tree`, `ls`, `find`, `jq`, etc.)

**Example commands:**

* `tree / -L 2`. See the top-level directory layout
* `rg -il "batch processing" /`. Find all files mentioning "batch processing"
* `rg -C 3 "addLog" /en/sdk/`. Show matches with context
* `head -80 /en/portal/evm/quickstart.mdx`. Read a specific page
* `cat /en/api/catalog/evm/openapi.yaml | head -50`. Inspect OpenAPI specs

<Tip>
  Start with `search_sqd_documentation` for broad questions, then use `query_docs_filesystem_sqd_documentation` to read specific pages or grep for exact patterns.
</Tip>

## Related

* [Portal API MCP Server](/en/ai/mcp-server) - Query blockchain data through Portal API
* [Portal API Reference](/en/portal/evm/overview) - HTTP API for blockchain data
* [Pipes SDK](/en/sdk/pipes-sdk/evm/quickstart) - TypeScript SDK for custom pipelines
* [llms.txt](https://docs.sqd.dev/llms.txt) - Documentation index for LLMs
