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

# MCP Server

> Expose your brews and cellar to Claude, Cursor, and other MCP clients.

Green Teagentic ships a built-in [Model Context Protocol](https://modelcontextprotocol.io)
server so external AI clients can read your brews as live context.

## Endpoint

```
POST https://greenteagentic.app/api/public/mcp
```

JSON-RPC 2.0 over HTTP. Streamable HTTP transport.

## Authentication

Send your personal token as a bearer header. Find it under
**Settings → MCP Server** in the app.

```
Authorization: Bearer <your-token>
Accept: application/json, text/event-stream
Content-Type: application/json
```

## Tools

| Tool            | Description                                                     |
| --------------- | --------------------------------------------------------------- |
| `list_brews`    | List your recent brews with title, type, status, and Tea Score. |
| `get_brew`      | Fetch the full Pour for a single brew by id.                    |
| `search_cellar` | Full-text search across your archived brews and recipes.        |

## Connecting clients

### Claude Desktop

Add to `claude_desktop_config.json`:

```json theme={null}
{
  "mcpServers": {
    "green-teagentic": {
      "url": "https://greenteagentic.app/api/public/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}
```

### Cursor

Settings → MCP → **Add server** → paste the URL and bearer token.

## Security

* Tokens are scoped to a single user — they only return that user's brews.
* Rotate a token at any time from **Settings → MCP Server**.
* All requests are logged for audit.
