@octri/mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@octri/mcpsearch the API docs for the create user endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@octri/mcp
An MCP server that turns your API documentation into tools an AI assistant can call. Claude, Cursor, VS Code Copilot, and any other MCP client can search your endpoints, open a guide, pull a ready-to-use SDK snippet in any supported language, and check the changelog for breaking changes, all from the same OpenAPI spec your docs are built from.
Octri turns an OpenAPI spec into a documentation site, client SDKs for ten languages, an MCP server your AI assistant can call, and monitoring for the API behind them. This package is the MCP server. See octri.dev/mcp.
Node 20 or newer. Runs over stdio for a local client, or SSE when you host it.
Install
npx -y @octri/mcpMost clients are configured with that command, so a global install is optional. The Installation section below has the exact config block for each one.
Related MCP server: mcp-swagger
Tools
Tool | Description |
| Search the API documentation for an endpoint or concept |
| Get full documentation for a specific API endpoint |
| List all available API endpoints, optionally filtered by section |
| Get recent API changes and breaking changes |
| List the available SDK client libraries (languages, versions, download links) |
| Get the full content of a written guide by its slug |
| Get ready-to-use SDK code snippets for each endpoint in every supported language |
Installation
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"my-api-docs": {
"command": "npx",
"args": ["@octri/mcp", "--project-id", "YOUR_PROJECT_ID"]
}
}
}Cursor
Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"my-api-docs": {
"command": "npx",
"args": ["@octri/mcp"],
"env": {
"OCTRI_PROJECT_ID": "YOUR_PROJECT_ID"
}
}
}
}VS Code (Copilot / MCP extension)
Add to .vscode/mcp.json:
{
"servers": {
"my-api-docs": {
"type": "stdio",
"command": "npx",
"args": ["@octri/mcp", "--project-id", "YOUR_PROJECT_ID"]
}
}
}Environment variables
Variable | Required | Default | Description |
| Yes* | — | The project to connect to. Can also be set via |
| No |
| Override the API base URL (useful for self-hosted deployments). |
| No |
| Set to |
| No |
| HTTP port when using SSE transport. |
* Required unless every tool call passes projectId explicitly.
Remote hosting (Docker / SSE transport)
The server supports SSE (Server-Sent Events) transport for remote deployment:
docker build -t octri-mcp .
docker run -p 3000:3000 \
-e OCTRI_PROJECT_ID=YOUR_PROJECT_ID \
octri-mcpThe container exposes two endpoints:
GET /sse— opens an SSE connection (configure this URL in your MCP client)POST /messages?sessionId=<id>— relay endpoint for client-to-server messages
Configure a remote MCP client to connect to http://your-host:3000/sse.
Local development
# Build
pnpm build
# Run in stdio mode
OCTRI_PROJECT_ID=my-project node dist/index.js
# Run in SSE mode
MCP_TRANSPORT=sse OCTRI_PROJECT_ID=my-project node dist/index.jsPublishing
pnpm build
npm publish --access publicRequires an npm account with access to the @octri scope.
The rest of Octri
Product | What it does |
Your OpenAPI spec becomes a hosted documentation site with a live request playground, editable page by page. | |
The same spec becomes client libraries for ten languages, versioned and released together. | |
Your endpoints and docs become tools an AI assistant can call, generated from the same spec. | |
Errors, traces, uptime and releases for the API, joined to the SDK calls that reached it. |
Monitoring runtimes
Node · Python · Go · Ruby · Rust · PHP · Java · Kotlin · Swift · Dart
Documentation · Pricing · Changelog
MIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Discover, compare, and monitor 1,400+ APIs directly from your AI coding agent.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to discover, search, and interact with REST APIs by parsing OpenAPI/Swagger specifications with intelligent fuzzy search across endpoints, supporting both local and remote API sources.5 npm2MIT
- AlicenseAqualityDmaintenanceExposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.141 npm2MIT
- FlicenseNot gradedqualityDmaintenanceBrings OpenAPI/Swagger documentation into AI assistants, enabling endpoint discovery, deep inspection, cURL generation, and TypeScript type generation.-
- AlicenseAqualityDmaintenanceEnables AI assistants to understand and interact with OpenAPI specifications, providing deep insight into API structures for faster and more accurate API integration.94 npm1MIT