Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using these docs with AI agents

Machine-readable entry points to these docs and the API: llms.txt, Markdown pages, the docs MCP server, and the OpenAPI spec.

If you build with an AI coding assistant, or you're an agent integrating SwapKit, these are the fastest ways in. Each one serves the same content as the human-readable site.

Docs MCP server

Connect your agent to the docs directly:

https://docs.swapkit.dev/~gitbook/mcp

It's a remote MCP server over Streamable HTTP and needs no authentication. Its tools:

  • searchDocumentation searches every page.

  • getPage returns a page as Markdown.

  • sendFeedback reports outdated or wrong content to the SwapKit team.

For example, in Claude Code:

claude mcp add --transport http swapkit-docs https://docs.swapkit.dev/~gitbook/mcp

llms.txt

Any page as Markdown

Add .md to any page URL to get its Markdown source, for example https://docs.swapkit.dev/get-started/quickstart.md.

OpenAPI spec

The API's OpenAPI 3 definition is at https://api.swapkit.dev/docs/json, with an interactive explorer at https://api.swapkit.dev/docs/. Use it to generate a typed client, or give it to an agent as the source of truth for request and response shapes.

Suggested starting points

For an agent building a swap integration, the most useful pages are, in order:

  1. Quickstart: the end-to-end flow in five steps.

  2. Authentication and API keys: the API key cannot be generated by an agent; a human creates it in the dashboard.

  3. How a swap works: the errors and rate limits to handle.

  4. Transaction Formats by txType: what to sign on each chain.

Last updated