Skip to main content
These docs are designed to be consumed by AI tools as well as humans. If you’re building with a coding agent (Claude Code, Cursor, Windsurf, Continue, etc.) or running RAG over docs, the surfaces below let you wire Raydium documentation in without any custom scraping.

What’s available

The Copy page button and the deep-link menu sit in the top-right of every page (next to the page title). Both are powered by the documentation platform’s contextual menu.

MCP server

The MCP (Model Context Protocol) server lets AI clients query the Raydium docs as a tool. Once configured, your agent can ask “search Raydium docs for addLiquidity parameters” and get authoritative answers cited back.

Claude Code

After adding, ask Claude Code to “search the Raydium docs for X” and it will use the tool.

Cursor

Add to your Cursor settings (Cmd/Ctrl + , → MCP):

Windsurf, Continue, generic clients

Any MCP-compatible client can point at https://docs.raydium.io/mcp. If your client requires a manifest, it’s at https://docs.raydium.io/mcp/.well-known/mcp.json.

What the server exposes

The Raydium docs MCP server exposes one primary tool, search_docs(query: string), which returns the highest-ranked passages for the query along with their canonical URLs. The agent is responsible for citing the URL it used; we don’t track or rate-limit per-agent.

llms.txt for RAG

llms.txt is an emerging standard for “machine-readable docs index”. Raydium publishes:
  • https://docs.raydium.io/llms.txt — a flat list of every page with title and one-line summary, organized by chapter.
  • https://docs.raydium.io/llms-full.txt — the full Markdown body of every page, concatenated, with page boundaries preserved as headings.
The full variant is regenerated on every docs deploy. Pull it on a schedule (daily is plenty) or fetch on-demand.

Per-page hand-off menu

Every body page has a contextual menu (top-right, next to the title) with these one-click actions:
  • Copy — copy the page as plain Markdown.
  • View as Markdown — open the source .md in a new tab so you can save it.
  • Open in ChatGPT / Claude / Perplexity — pre-load the page content into a chat prompt for the named tool.
  • Open in Cursor / VS Code — open a buffer in the named editor with the page content.
This is the right surface when you want to ask a model a question about a single page without setting up MCP.

Pre-built context files for coding agents

If you’re integrating Raydium and want your agent to have the right baseline knowledge from the start, drop these files into your project:

.cursorrules / .windsurfrules / agent system prompt

Save as .cursorrules (Cursor), .windsurfrules (Windsurf), or CLAUDE.md (Claude Code) — or paste into your agent’s system prompt. The exact filename and location vary by tool version, so check your tool’s settings docs if it does not pick the file up automatically.

Pinned context list

For coding agents that accept a list of “always include” pages, this list is the minimum useful context for most Raydium integrations:
Adjust based on which products you’re integrating.

Indexing recipe

If you’re building your own RAG and don’t want to use llms-full.txt, here’s the canonical recipe:
Every page is served at its canonical path with a .md suffix appended (e.g. /sdk-api/typescript-sdk/sdk-api/typescript-sdk.md).

Caveats

  • Don’t paste private state into prompts. The MCP server only knows what’s in the public docs. Wallet keys, RPC credentials, and similar secrets should never enter agent context.
  • AI output isn’t authoritative. Models hallucinate program addresses, instruction names, and account lists with worrying ease. Always verify against the docs and the IDL before trusting agent-generated transactions.
  • Version drift. SDK v2 is pre-1.0; agents trained on older releases may emit code that doesn’t compile against your pinned version. Include the pinned SDK version in your agent’s system prompt.

Pointers

Sources: