# MCP server

Agents read logs, traces and metrics with a read-only key.

Available

[Create the key in Epok](https://app.epok.cloud) [Full setup guide](https://epok.cloud/docs/agents)

## What you get

Agents read logs, traces and metrics with a read-only key. Delivered through Model Context Protocol.

## Set it up

1. Create a read-only agent key in Epok: Settings, then API keys, Read-only agent (for MCP).
2. Add Epok's hosted MCP server to your agent with that key, as the setup page shows.
3. Ask your agent about your logs, traces or metrics.

The commands and configuration for each step are on the [setup guide](https://epok.cloud/docs/agents).

## What was tested

- Code tests of the ingest route or the sender: 2 tests.
- No run against the hosted service is recorded yet.

## What you see in Epok

- Seven read-only tools in your agent: search logs, read traces and query metrics.

## Troubleshooting

- Ingest, write and mixed-scope keys are refused. Use the read-only agent preset.
- Send the key only as an Authorization: Bearer header; keys in the URL are refused.
