Docs MCP server
Connect an MCP client to these docs at learn.getcruxy.com/mcp to list, read, and search every page as tools. Public and read-only, with no key.
Cruxy Learn is also a Model Context Protocol (MCP) server, so the agent in your editor or chat app can look up a page while it works instead of guessing. It serves the same pages as this site, rebuilt on every deploy. It never calls the Cruxy API, takes no API key, and needs no account.
Endpoint
https://learn.getcruxy.com/mcpThe server speaks MCP's Streamable HTTP transport, statelessly: every request is
one JSON-RPC message sent with POST, answered with JSON, and there is no
session id to keep. GET and DELETE answer 405. There is no authentication
and no cookie, and CORS allows any origin, so a browser-based client can connect
too.
Add it to your client
Add it as a remote HTTP MCP server in your client, with the endpoint above as its URL. In Claude Code, the command is:
claude mcp add --transport http cruxy-docs https://learn.getcruxy.com/mcpTo share it with your team through a project's .mcp.json, Claude Code reads
this entry:
{
"mcpServers": {
"cruxy-docs": {
"type": "http",
"url": "https://learn.getcruxy.com/mcp"
}
}
}Both forms are from Connect Claude Code to tools via MCP. For any other client, use its own setting for a remote HTTP server.
Tools
The server has three tools. All three are read-only and deterministic: the same input returns the same output until the next deploy.
| Tool | Input | Returns |
|---|---|---|
list_pages | None | Every page in navigation order, each with title, description, url, markdown_url, and section (its tab). The same list as /llms.txt. |
get_page | url_or_slug, a string of up to 300 characters | The page as markdown, exactly as its .md URL serves it. |
search_docs | query, 1 to 200 characters; limit, 1 to 10, default 5 | results, best match first, each with title, url, section, and snippet, the passage that matches. |
get_page accepts a page URL (https://learn.getcruxy.com/docs/en/build/chat,
with or without .md), a site path (/docs/en/build/chat), or a slug
(build/chat). A slug that ends only one page's URL works on its own, so
quickstart finds the quickstart; one that ends two, such as chat, returns an
error listing both URLs.
search_docs matches keywords, not meaning: it ranks pages by the words they
share with your query, with extra weight on words in the title. Use the words
the docs would use, such as rate limit 429 or stream tool calls.
Each page is also an MCP resource, at its .md URL with the type
text/markdown, for clients that browse resources rather than call tools.
Call it without a client
A tool call is one POST. The Accept header must list both
application/json and text/event-stream, as the transport requires:
curl https://learn.getcruxy.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_docs","arguments":{"query":"rate limit 429","limit":3}}}'import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
const client = new Client({ name: 'docs-lookup', version: '1.0.0' })
await client.connect(
new StreamableHTTPClientTransport(new URL('https://learn.getcruxy.com/mcp')),
)
const { tools } = await client.listTools()
console.log(tools.map((tool) => tool.name))
const result = await client.callTool({
name: 'search_docs',
arguments: { query: 'rate limit 429', limit: 3 },
})
console.log(result.structuredContent)
await client.close()The TypeScript sample uses the official MCP TypeScript SDK
(npm install @modelcontextprotocol/sdk) and runs as an ES module.
Limits
| Limit | Value | Over it |
|---|---|---|
| Requests per client IP | 60 per 5 minutes | 429 with Retry-After |
| Request body | 16 KiB, one JSON-RPC message (no batches) | 413, or 400 for a batch |
| Time per request | 4 seconds | 503 with Retry-After |
Connecting costs a client four or five requests (initialize, its follow-up
notification, and the lists of tools and resources), and each tool call costs
one more. A 429 clears on its own: wait the Retry-After seconds, then retry.