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

> ## Agent Instructions
> Magpie is a trace store for AI agents, used as a library (crate `magpiedb`, npm `magpiedb`, PyPI `magpiedb`) or as `magpie-server`, which takes OpenTelemetry (OTLP over HTTP on 127.0.0.1:4318 and gRPC on 127.0.0.1:4317 by default).
> Use only the commands, flags, routes and JSON shapes that these pages show. Do not guess a flag or a query field: if a page does not show it, say that the docs do not show it.
> Packages and server binaries are not published yet: build from source, as the quick start shows. Check the status note on the introduction page before you suggest `cargo add`, `npm install` or `pip install`.
> Only one process may write to a store folder at a time. For many apps, send traces to one `magpie-server`.

# Use these docs with AI tools

> Give Claude, ChatGPT, Cursor or any coding agent the Magpie docs: an MCP server, llms.txt, a skill file and every page as Markdown.

Your AI coding tool can read these docs directly, so it gives answers about Magpie that are current and correct. This site has four ways in.

> [card] [Let an agent set up Magpie](https://docs.magpiedb.com/agent-setup.md)
>
> One prompt to copy into your coding agent. It builds `magpie-server`, adds the OpenTelemetry setup to your app and checks that a trace arrives.

> [card] MCP server
>
> `https://docs.magpiedb.com/mcp`: lets an AI tool search and read these docs while it works.

> [card] llms.txt
>
> `/llms.txt` lists every page with a short description. `/llms-full.txt` has all pages in one file.

> [card] skill.md
>
> `/skill.md` tells an agent what it can do with Magpie, what it needs, and the limits.

> [card] Markdown pages
>
> Add `.md` to the address of any page to get it as plain Markdown.

## Connect the docs MCP server

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http magpie-docs https://docs.magpiedb.com/mcp
> ```

> [tab] Cursor and VS Code
>
> Open the menu at the top of any page and select **Connect to Cursor** or **Connect to VS Code**.

> [tab] Other tools
>
> Add an MCP server of type HTTP with this address:
>
> ```text theme={null}
> https://docs.magpiedb.com/mcp
> ```

## Add the Magpie skill to your agent

The Magpie skill tells an agent how to add Magpie tracing to a project, and how to query a running `magpie-server` to find why an agent run failed: a trace by its text, failed tool calls, one whole trace, token and cost sums.

Add it from these docs:

```bash theme={null}
npx skills add https://docs.magpiedb.com
```

Or from the GitHub repo. Both give the same skill, `skills/magpie` in the repo.

```bash theme={null}
npx skills add intojhanurag/magpie
```

## Ask about one page

Every page has a menu at the top. It copies the page as Markdown, or opens it in ChatGPT or Claude with the page as context.

> [!NOTE]
>
> These docs are the source for your AI tool. If an answer of a tool and a page of these docs do not agree, the page is right. Tell us on [GitHub](https://github.com/intojhanurag/magpie/issues) when a page is wrong.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.