# MCP

The gateway can start an MCP server endpoint with:

```toml
[mcp]
enabled = true # defaults to false
# Path at which to expose the MCP service
path = "/mcp"
# Whether mutations can be executed
execute_mutations = false
# Either "http-streaming" or "sse". The default is "http-streaming".
transport = "http-streaming"
```

See the [MCP section](https://grafbase.com/docs/gateway/mcp.md) of the gateway docs for more details on how the MCP endpoint works and how to secure it.