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

# MCP integration

> Connect the Ground MCP server to Cursor, Claude Code, and other MCP clients.

# MCP integration

Ground exposes an [MCP](https://modelcontextprotocol.io) server so coding agents can call search, package search, Rover, and related tools using your **API key**. Usage follows the same **rate limits and quotas** as the REST API for your account.

## Endpoint

```
https://api.trygroundai.com/mcp
```

Use **Streamable HTTP** transport (POST). Send your API key on every request:

```http theme={null}
Authorization: Bearer gnd_your_api_key
```

Some clients also support the `X-API-Key` header with the same `gnd_…` value—check your client’s docs.

## Configure your client

Add a server entry that points at the URL above and forwards your key. Example shape (field names depend on the product):

```json theme={null}
{
  "mcpServers": {
    "ground": {
      "url": "https://api.trygroundai.com/mcp",
      "headers": {
        "Authorization": "Bearer gnd_your_api_key"
      }
    }
  }
}
```

## Tools (overview)

Tools map to documented REST capabilities—for example hybrid search, RMH search, on-demand package search, and Rover jobs. Tool names and parameters match what the MCP server publishes in its manifest; refer to the **API reference** for request semantics and response shapes.

## Source code

The MCP server implementation lives in the open-source repo under `mcp-server/`. Build and run it locally only if you are developing Ground; production traffic should use `https://api.trygroundai.com/mcp`.

## Support

Documentation questions: [ali@trygroundai.com](mailto:ali@trygroundai.com)
