# Grafbase MCP Command

Start an MCP server for a given GraphQL API:

**Usage:**

```bash
grafbase mcp <url>
```

**Options:**

- `-H, --header <HEADER>`: Add a header to the GraphQL requests
- `-s, --schema <SCHEMA>`: GraphQL schema to use instead of relying on introspection
- `-p, --port <PORT>`: Port to listen on
- `--execute-mutations`: Grant this MCP server the ability to execute mutations
- `--transport`: Either `http-streaming` or `sse`. Defaults to `http-streaming`.