Skip to content
MCP server
Registry

choreo-labs-docs-mcp-server MCP Server

RAG search over Choreo Labs (formerly WSO2) docs: APIM, IS, MI, Choreo, Ballerina, via pgvector.

choreo-labs-docs-mcp-server scores 68 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It declares 4 tools. Filed under Databases, Search, AI and memory. GitHub shows 4 stars. Package registries report about 328 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by iamvirulApache-2.0TypeScript4 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "iamvirul-choreo-labs-docs-mcp-server": {      "command": "npx",      "args": [        "-y",        "choreo-labs-docs-mcp-server@2.0.2"      ],      "env": {        "DATABASE_URL": "",        "EMBEDDING_PROVIDER": "",        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",        "VOYAGE_API_KEY": "YOUR_VOYAGE_API_KEY"      }    }  }}

Environment variables

NameRequiredNotes
DATABASE_URLRequiredPostgreSQL connection string for pgvector (e.g. postgresql://user:pass@localhost:5432/choreodocs)
EMBEDDING_PROVIDEROptionalEmbedding backend to use: ollama (default, local), openai, gemini, or voyage
OPENAI_API_KEYSecretOptionalRequired only when EMBEDDING_PROVIDER=openai
GEMINI_API_KEYSecretOptionalRequired only when EMBEDDING_PROVIDER=gemini
VOYAGE_API_KEYSecretOptionalRequired only when EMBEDDING_PROVIDER=voyage

Tools4Tool docs quality grade B

All capabilities

About

Choreo Labs Docs MCP Server

npm version License Wso2 Docs MCP on mcprush

"This is an unofficial community project. Not affiliated with or endorsed by Choreo Labs (formerly WSO2)."

Renamed from wso2-docs-mcp-server. WSO2 is now Choreo Labs, so this package is now choreo-labs-docs-mcp-server and its tools are *_choreo_*. Upgrading from wso2-docs-mcp-server? See Migrating from wso2-docs-mcp-server.

A production-ready Model Context Protocol (MCP) server that provides AI assistants (Claude Desktop, Claude Code, Cursor, VS Code) with semantic search over Choreo Labs (formerly WSO2) documentation via Retrieval-Augmented Generation (RAG).

Under the hood, it uses a blazing-fast dual-ingestion engine:

  • GitHub Native: Fetches raw Markdown directly from Choreo Labs' public GitHub repositories (the wso2 org) via the Git Trees API (avoids web-scraping noise and rate limits)
  • Web Crawl Fallback: For products without dedicated GitHub docs repos (like the Choreo Labs Library)

Architecture

System Architecture

Documentation Sources

ProductIDURL
API Managerapimhttps://apim.docs.wso2.com
Micro Integratormihttps://mi.docs.wso2.com/en/4.4.0
Ballerina Integratorbihttps://bi.docs.wso2.com
Choreochoreohttps://wso2.com/choreo/docs
Identity Serverishttps://is.docs.wso2.com/en/latest
Ballerinaballerinahttps://ballerina.io/learn
Choreo Labs Librarylibraryhttps://wso2.com/library

Prerequisites

  • Node.js ≥ 20
  • Docker (for pgvector)
  • Embeddings - no API key required by default:
    • Ollama (recommended) - runs locally, model auto-downloaded on first run
    • If Ollama is not running, the server automatically falls back to HuggingFace ONNX (in-process, also downloads automatically)
    • Cloud providers are also supported: OpenAI, Google Gemini, Voyage AI

Quick Start

Choose the setup path that fits your use case:


Install from npm

Install the package globally to get the choreo-labs-docs-mcp-server, choreo-labs-docs-crawl, and choreo-labs-docs-migrate commands available system-wide:

npm install -g choreo-labs-docs-mcp-server

Prefer no global install? You can use npx choreo-labs-docs-mcp-server, npx choreo-labs-docs-crawl, and npx choreo-labs-docs-migrate in every step below - just replace the bare command with its npx equivalent.

1. Start pgvector

Download the docker-compose.yml and start the database:

curl -O https://raw.githubusercontent.com/iamvirul/choreo-labs-docs-mcp-server/main/docker-compose.yml
docker compose up -d

2. Start Ollama (optional but recommended)

Install Ollama and pull the default embedding model:

ollama pull nomic-embed-text
ollama serve

No Ollama? Skip this step. The server automatically falls back to HuggingFace ONNX - model downloads on first use with no extra setup.

3. Run database migration

DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  choreo-labs-docs-migrate

Run migration again whenever you change EMBEDDING_DIMENSIONS (i.e. switch embedding provider). The script detects and handles dimension changes automatically.

4. Index Choreo Labs documentation

# Index all products (first run downloads the embedding model automatically)
DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  choreo-labs-docs-crawl

# Index a single product (faster, great for testing)
DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  choreo-labs-docs-crawl --product ballerina --limit 20

# Force re-index even unchanged pages
DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  choreo-labs-docs-crawl --force

Available product IDs: apim, mi, bi, choreo, is, ballerina, library

5. Configure your AI client

The MCP server is launched on demand by your AI client - no background process needed.

Claude Desktop - edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "choreo-labs-docs": {
      "command": "choreo-labs-docs-mcp-server",
      "env": {
        "DATABASE_URL": "postgresql://choreomcp:choreomcp@localhost:5432/choreodocs",
        "EMBEDDING_PROVIDER": "ollama"
      }
    }
  }
}

Claude Code - run once in your terminal:

claude mcp add choreo-labs-docs \
  --transport stdio \
  -e DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  -e EMBEDDING_PROVIDER="ollama" \
  -- choreo-labs-docs-mcp-server

# Verify
claude mcp list

Cursor - create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "choreo-labs-docs": {
      "command": "choreo-labs-docs-mcp-server",
      "env": {
        "DATABASE_URL": "postgresql://choreomcp:choreomcp@localhost:5432/choreodocs",
        "EMBEDDING_PROVIDER": "ollama"
      }
    }
  }
}

VS Code - create .vscode/mcp.json:

{
  "servers": {
    "choreo-labs-docs": {
      "type": "stdio",
      "command": "choreo-labs-docs-mcp-server",
      "env": {
        "DATABASE_URL": "postgresql://choreomcp:choreomcp@localhost:5432/choreodocs",
        "EMBEDDING_PROVIDER": "ollama"
      }
    }
  }
}

Using npx instead of global install? Replace "command": "choreo-labs-docs-mcp-server" with "command": "npx" and add "args": ["-y", "choreo-labs-docs-mcp-server"].

Cloud embedding provider? Add the key to env, e.g. "EMBEDDING_PROVIDER": "openai", "OPENAI_API_KEY": "sk-...".


Clone and build

1. Clone and install

git clone https://github.com/iamvirul/choreo-labs-docs-mcp-server.git
cd choreo-labs-docs-mcp-server
npm install

2. Start Ollama (optional but recommended)

Install Ollama and start it:

ollama serve

No Ollama? Skip this step. The server detects Ollama is not running and automatically falls back to HuggingFace ONNX inference - the model downloads on first use with no extra setup.

3. Configure environment

cp .env.example .env
# Defaults work out of the box with Ollama.
# Only edit if using a cloud provider (OpenAI / Gemini / Voyage).

4. Start pgvector

docker compose up -d
# pgAdmin available at http://localhost:5050 (admin@choreomcp.local / admin)

5. Run database migration

npm run db:migrate

Note: Run migration again whenever you change EMBEDDING_DIMENSIONS (i.e. switch embedding provider). The script detects and handles dimension changes automatically.

6. Index documentation

# Index all products
# On first run the embedding model is downloaded automatically (Ollama or HuggingFace)
npm run crawl

# Index a single product (faster, great for testing)
npm run crawl -- --product ballerina --limit 20

# Force re-index even unchanged pages
npm run crawl -- --force

7. Build and start the MCP server

npm run build
npm start

For development (no build step):

npm run dev

8. Configure your AI client

Replace /ABSOLUTE/PATH/TO/choreo-labs-docs-mcp-server with your actual clone path.

Claude Desktop - edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "choreo-labs-docs": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/choreo-labs-docs-mcp-server/dist/src/index.js"],
      "env": {
        "DATABASE_URL": "postgresql://choreomcp:choreomcp@localhost:5432/choreodocs",
        "EMBEDDING_PROVIDER": "ollama"
      }
    }
  }
}

Claude Code:

claude mcp add choreo-labs-docs \
  --transport stdio \
  -e DATABASE_URL="postgresql://choreomcp:choreomcp@localhost:5432/choreodocs" \
  -e EMBEDDING_PROVIDER="ollama" \
  -- node "/ABSOLUTE/PATH/TO/choreo-labs-docs-mcp-server/dist/src/index.js"

# Verify
claude mcp list

See config-examples/claude_code.sh for a convenience script.

Cursor - create .cursor/mcp.json - see config-examples/cursor_mcp.json.

VS Code - create .vscode/mcp.json - see config-examples/vscode_mcp.json.


MCP Tools

ToolDescription
search_choreo_docsSemantic search across all products. Optional product and limit filters.
get_choreo_guideSearch within a specific product (apim, mi, bi, choreo, is, ballerina, library).
explain_choreo_conceptBroad concept search across all products, returns 8 top results.
list_choreo_productsReturns all supported products with IDs and base URLs.

Example response

[
  {
    "title": "Deploying WSO2 API Manager",
    "snippet": "WSO2 API Manager can be deployed in various topologies…",
    "source_url": "https://apim.docs.wso2.com/en/latest/install-and-setup/...",
    "product": "apim",
    "section": "Deployment Patterns",
    "score": 0.8712
  }
]

Migrating from wso2-docs-mcp-server

WSO2 is now Choreo Labs. Version 2.0.0 renames this package to match. Upstream docs URLs, product IDs (apim, mi, bi, choreo, is, ballerina, library) and product names are unchanged. The one exception is the library source, which is now named "Choreo Labs Library" (formerly "WSO2 Library").

WhatBefore (≤ 1.x)After (≥ 2.0)
npm packagewso2-docs-mcp-serverchoreo-labs-docs-mcp-server
CLI commandswso2-docs-mcp-server, wso2-docs-crawl, wso2-docs-migratechoreo-labs-docs-mcp-server, choreo-labs-docs-crawl, choreo-labs-docs-migrate
MCP toolssearch_wso2_docs, get_wso2_guide, explain_wso2_concept, list_wso2_productssearch_choreo_docs, get_choreo_guide, explain_choreo_concept, list_choreo_products
MCP Registry nameio.github.iamvirul/wso2-docs-mcp-serverio.github.iamvirul/choreo-labs-docs-mcp-server
Default MCP_SERVER_NAMEwso2-docs-mcpchoreo-labs-docs-mcp
docker-compose DB user / dbwso2mcp / wso2docschoreomcp / choreodocs

Steps

  1. Swap the package: npm uninstall -g wso2-docs-mcp-server && npm install -g choreo-labs-docs-mcp-server (or change npx -y wso2-docs-mcp-server to npx -y choreo-labs-docs-mcp-server).
  2. In your MCP client config, update command/args to the new binary names. You can also rename the server key (e.g. "wso2-docs" → "choreo-labs-docs").
  3. Update any prompts, agent instructions or tool allowlists that reference the old tool names.
  4. Database — pick one:
    • Keep your existing index (no re-crawl): Compose names the data volume <project>_pgvector_data, and the project name defaults to the directory you run docker compose from. Renaming or re-cloning the repo (the new default clone directory is choreo-labs-docs-mcp-server) therefore points Compose at a new, empty volume. Find your existing volume with docker volume ls | grep pgvector_data, then either keep running Compose from the original directory or pin the old project name, e.g. COMPOSE_PROJECT_NAME=wso2-docs-mcp-server docker compose up -d (use the prefix shown before _pgvector_data). Leave your current DATABASE_URL (postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs) as is: Postgres ignores the new POSTGRES_* values in docker-compose.yml because that volume is already initialised, so the old credentials keep working.
    • Start fresh with the new defaults: docker compose down -v, download the new docker-compose.yml, docker compose up -d, then run choreo-labs-docs-migrate and choreo-labs-docs-crawl with postgresql://choreomcp:choreomcp@localhost:5432/choreodocs.

The schema is unchanged, so you don't need a data migration.

Local Embeddings

The default EMBEDDING_PROVIDER=ollama runs entirely on your machine with no API key. The startup sequence is:

Is Ollama running?
├── Yes → Is model present?
│         ├── Yes → Ready (instant)
│         └── No  → Pull via Ollama (streamed, runs once)
└── No  → Download ONNX model from HuggingFace Hub (~250 MB, cached after first run)
           and run inference in-process via @huggingface/transformers

Both paths use nomic-embed-text / Xenova/nomic-embed-text-v1 by default and produce identical 768-dim vectors, so you can switch between them without re-indexing.

Hardware acceleration (HuggingFace ONNX fallback)

When Ollama is not available, the server auto-detects the best compute backend:

MachineDetectionONNX dtypeBatch sizeThroughput
Apple Silicon (M1/M2/M3/M4)process.arch === 'arm64'q8 INT832~9 ms/chunk
NVIDIA GPUnvidia-smi probefp3264GPU-dependent
All othersfallbackq8 INT816~10 ms/chunk

Why q8 on Apple Silicon instead of CoreML/Metal? CoreML compiles Metal shaders on first use (~20 min cold-start). For the typical chunk sizes produced by this server (6–20 chunks per page), the CPU↔GPU transfer overhead eliminates any inference gain. INT8 quantized inference on ARM NEON SIMD is consistently ~100× faster than fp32 CPU with zero cold-start cost.

Benchmark (Apple M-chip, Xenova/nomic-embed-text-v1):

fp32 CPU (before): ~1,000 ms/chunk   (68 chunks ≈ 68 s of embedding)
q8  ARM NEON:          ~9 ms/chunk   (68 chunks ≈  0.6 s of embedding)  ← ~100× speedup

Note: For small crawls (≤ 10 pages) total wall-clock time is dominated by network I/O (HTTPS fetches to docs sites), so the end-to-end improvement is modest. The embedding speedup becomes significant at scale - crawling 500+ pages where embedding previously accounted for hours of runtime. For best crawl performance, run Ollama (ollama serve) which parallelises inference natively and has no per-chunk overhead.


Environment Variables

Core

VariableDefaultDescription
DATABASE_URL-PostgreSQL connection string (required)
EMBEDDING_PROVIDERollamaollama | openai | gemini | voyage
EMBEDDING_DIMENSIONS768Must match model output dimensions
CRAWL_CONCURRENCY5Concurrent HTTP requests during crawl
CHUNK_SIZE800Approximate tokens per chunk
CHUNK_OVERLAP100Overlap tokens between chunks
CACHE_TTL_SECONDS3600In-memory query cache TTL
TOP_K_RESULTS10Default search result count

Ollama (default)

VariableDefaultDescription
OLLAMA_BASE_URLhttp://localhost:11434Ollama server URL
OLLAMA_EMBEDDING_MODELnomic-embed-textModel pulled and used via Ollama
HUGGINGFACE_EMBEDDING_MODELXenova/nomic-embed-text-v1ONNX fallback when Ollama is not running

Cloud providers

VariableDefaultDescription
OPENAI_API_KEY-Required if EMBEDDING_PROVIDER=openai
OPENAI_EMBEDDING_MODELtext-embedding-3-smallOpenAI model
GEMINI_API_KEY-Required if EMBEDDING_PROVIDER=gemini
GEMINI_EMBEDDING_MODELtext-embedding-004Gemini model
VOYAGE_API_KEY-Required if EMBEDDING_PROVIDER=voyage
VOYAGE_EMBEDDING_MODELvoyage-3Voyage model

Embedding dimension reference

ProviderModelDimensions
Ollama / HuggingFacenomic-embed-text / Xenova/nomic-embed-text-v1768 (default)
Ollama / HuggingFacemxbai-embed-large / Xenova/mxbai-embed-large-v11024
Ollama / HuggingFaceall-minilm / Xenova/all-MiniLM-L6-v2384
OpenAItext-embedding-3-small1536
OpenAItext-embedding-3-large3072
Geminitext-embedding-004768
Voyagevoyage-31024
Voyagevoyage-3-lite512

Scheduled Re-indexing

# Run a one-off re-index (checks hashes, skips unchanged pages)
npm run reindex

# Or from the project directory using node-cron (runs daily at 2 AM)
DATABASE_URL=... node -e "
  const { ReindexJob } = require('./dist/jobs/reindexDocs');
  const job = new ReindexJob();
  job.initialize().then(() => job.scheduleDaily());
"

Project Structure

src/
  config/          env.ts · constants.ts
  vectorstore/     pgvector.ts · schema.sql
  ingestion/       crawler.ts · parser.ts · githubFetcher.ts · markdownParser.ts · chunker.ts · embedder.ts
  server/          mcpServer.ts · toolRegistry.ts
  jobs/            reindexDocs.ts
  index.ts
scripts/
  crawl.ts         CLI ingestion pipeline
  migrate.ts       Dynamic schema migration
config-examples/   claude_desktop.json · claude_code.sh · cursor_mcp.json · vscode_mcp.json
docker-compose.yml
.env.example

Development

# Type-check
npx tsc --noEmit

# Run crawl with tsx (no build needed)
npm run crawl -- --product ballerina --limit 5

# Run server in dev mode
npm run dev

Frequently asked questions

What is choreo-labs-docs-mcp-server MCP Server?

RAG search over Choreo Labs (formerly WSO2) docs: APIM, IS, MI, Choreo, Ballerina, via pgvector.

How do I install choreo-labs-docs-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. choreo-labs-docs-mcp-server MCP Server runs locally from the npm package choreo-labs-docs-mcp-server with the command npx -y choreo-labs-docs-mcp-server@2.0.2.

Is choreo-labs-docs-mcp-server MCP Server free and open source?

Yes. choreo-labs-docs-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does choreo-labs-docs-mcp-server MCP Server support remote (HTTP) connections?

No remote endpoint is listed for choreo-labs-docs-mcp-server MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does choreo-labs-docs-mcp-server MCP Server provide?

choreo-labs-docs-mcp-server MCP Server provides 4 tools: explain_choreo_concept, get_choreo_guide, list_choreo_products, and search_choreo_docs. See the full tool list for descriptions and parameters.

How is choreo-labs-docs-mcp-server MCP Server's trust score calculated?

choreo-labs-docs-mcp-server MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server