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

# MCP Server

> Contra exposes the identity API as MCP tools so any AI agent can call them as native capabilities.

The Contra **MCP server** exposes a handful of tools that wrap the REST API 1:1.

## Tool catalog

| Tool                        | Wraps                           | Cost |
| --------------------------- | ------------------------------- | ---- |
| `contra_list_workflows`     | `GET /v1/workflows`             | free |
| `contra_start_verification` | `POST /v1/sessions`             | hold |
| `contra_get_decision`       | `GET /v1/sessions/:id/decision` | paid |
| `contra_anchor_onchain`     | `POST /v1/sessions/:id/anchor`  | paid |
| `contra_check_compliance`   | `GET /v1/compliance/:address`   | free |

## Wiring

```typescript theme={null}
import { MCPServer } from '@modelcontextprotocol/sdk'
import { contraTools } from '@contra/mcp'

const server = new MCPServer({ tools: contraTools() })
server.start()
```

## Auth model

* Tools that **cost us money** (Smile job, on-chain mint) sit behind **x402**.
* Tools that are **on-chain reads** are free — the composability moat.

See [x402](/integrate/x402) for the payment handshake.
