Context7
Up-to-date docs for AI agents
Beschreibung vom Entwickler (englisches Original)
Semantic search over WSO2 docs (APIM, IS, MI, Choreo, Ballerina) via RAG and pgvector.
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
DATABASE_URL, EMBEDDING_PROVIDER, OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEYAls geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.
Du brauchst
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"wso2-docs": {
"command": "npx",
"args": [
"-y",
"wso2-docs-mcp-server"
],
"env": {
"DATABASE_URL": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GEMINI_API_KEY": "your-value",
"VOYAGE_API_KEY": "your-value"
}
}
}
}Führe das in deinem Terminal aus
claude mcp add wso2-docs --env DATABASE_URL=your-value --env EMBEDDING_PROVIDER=your-value --env OPENAI_API_KEY=your-value --env GEMINI_API_KEY=your-value --env VOYAGE_API_KEY=your-value -- npx -y wso2-docs-mcp-serverTrag die leeren Werte ein, bevor du ihn startest.
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"wso2-docs": {
"command": "npx",
"args": [
"-y",
"wso2-docs-mcp-server"
],
"env": {
"DATABASE_URL": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GEMINI_API_KEY": "your-value",
"VOYAGE_API_KEY": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"wso2-docs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"wso2-docs-mcp-server"
],
"env": {
"DATABASE_URL": "your-value",
"EMBEDDING_PROVIDER": "your-value",
"OPENAI_API_KEY": "your-value",
"GEMINI_API_KEY": "your-value",
"VOYAGE_API_KEY": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
EMBEDDING_PROVIDER envDiese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026
Der Registry-Name wurde mit dem GitHub-Konto iamvirul bestätigt, dem das Repo gehört
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Das musst du eintragen: DATABASE_URL, OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY
Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (1.3.14) kam vor 7 Tagen in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.
In derselben Kategorie: Context7, Codebase Memory, Exa
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
"This is an unofficial community project. Not affiliated with or endorsed by WSO2."
A production-ready Model Context Protocol (MCP) server that provides AI assistants (Claude Desktop, Claude Code, Cursor, VS Code) with semantic search over WSO2 documentation via Retrieval-Augmented Generation (RAG).
Under the hood, it uses a blazing-fast dual-ingestion engine:
| Product | ID | URL |
|---|---|---|
| API Manager | apim | https://apim.docs.wso2.com |
| Micro Integrator | mi | https://mi.docs.wso2.com/en/4.4.0 |
| Ballerina Integrator | bi | https://bi.docs.wso2.com |
| Choreo | choreo | https://wso2.com/choreo/docs |
| Identity Server | is | https://is.docs.wso2.com/en/latest |
| Ballerina | ballerina | https://ballerina.io/learn |
| WSO2 Library | library | https://wso2.com/library |
Choose the setup path that fits your use case:
Install the package globally to get the wso2-docs-mcp-server, wso2-docs-crawl, and wso2-docs-migrate commands available system-wide:
npm install -g wso2-docs-mcp-server
Prefer no global install? You can use
npx wso2-docs-mcp-server,npx wso2-docs-crawl, andnpx wso2-docs-migratein every step below - just replace the bare command with itsnpxequivalent.
Download the docker-compose.yml and start the database:
curl -O https://raw.githubusercontent.com/iamvirul/wso2-docs-mcp-server/main/docker-compose.yml
docker compose up -d
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.
DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \
wso2-docs-migrate
Run migration again whenever you change
EMBEDDING_DIMENSIONS(i.e. switch embedding provider). The script detects and handles dimension changes automatically.
# Index all products (first run downloads the embedding model automatically)
DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-docs-crawl
DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-docs-crawl --product ballerina --limit 20
DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-docs-crawl --force
Available product IDs: apim, mi, bi, choreo, is, ballerina, library
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": { "wso2-docs": { "command": "wso2-docs-mcp-server", "env": { "DATABASE_URL": "postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs", "EMBEDDING_PROVIDER": "ollama" } } } }
Claude Code - run once in your terminal:
claude mcp add wso2-docs \
--transport stdio \ -e DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ -e EMBEDDING_PROVIDER="ollama" \ -- wso2-docs-mcp-server
claude mcp list
Cursor - create .cursor/mcp.json in your project root:
{
"mcpServers": { "wso2-docs": { "command": "wso2-docs-mcp-server", "env": { "DATABASE_URL": "postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs", "EMBEDDING_PROVIDER": "ollama" } } } }
VS Code - create .vscode/mcp.json:
{
"servers": { "wso2-docs": { "type": "stdio", "command": "wso2-docs-mcp-server", "env": { "DATABASE_URL": "postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs", "EMBEDDING_PROVIDER": "ollama" } } } }
Using `npx` instead of global install? Replace
"command": "wso2-docs-mcp-server"with"command": "npx"and add"args": ["-y", "wso2-docs-mcp-server"].
Cloud embedding provider? Add the key to
env, e.g."EMBEDDING_PROVIDER": "openai", "OPENAI_API_KEY": "sk-...".
git clone https://github.com/iamvirul/wso2-docs-mcp-server.git
cd wso2-docs-mcp-server npm install
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.
cp .env.example .env
docker compose up -d
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.
# Index all products
npm run crawl
npm run crawl -- --product ballerina --limit 20
npm run crawl -- --force
npm run build
npm start
For development (no build step):
npm run dev
Replace
/ABSOLUTE/PATH/TO/wso2-docs-mcp-serverwith your actual clone path.
Claude Desktop - edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "wso2-docs": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/wso2-docs-mcp-server/dist/src/index.js"], "env": { "DATABASE_URL": "postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs", "EMBEDDING_PROVIDER": "ollama" } } } }
Claude Code:
claude mcp add wso2-docs \
--transport stdio \ -e DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ -e EMBEDDING_PROVIDER="ollama" \ -- node "/ABSOLUTE/PATH/TO/wso2-docs-mcp-server/dist/src/index.js"
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.
| Tool | Description |
|---|---|
search_wso2_docs | Semantic search across all products. Optional product and limit filters. |
get_wso2_guide | Search within a specific product (apim, mi, bi, choreo, is, ballerina, library). |
explain_wso2_concept | Broad concept search across all products, returns 8 top results. |
list_wso2_products | Returns all supported products with IDs and base URLs. |
[
{ "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 } ]
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.
When Ollama is not available, the server auto-detects the best compute backend:
| Machine | Detection | ONNX dtype | Batch size | Throughput |
|---|---|---|---|---|
| Apple Silicon (M1/M2/M3/M4) | process.arch === 'arm64' | q8 INT8 | 32 | ~9 ms/chunk |
| NVIDIA GPU | nvidia-smi probe | fp32 | 64 | GPU-dependent |
| All others | fallback | q8 INT8 | 16 | ~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.
| Variable | Default | Description | |||
|---|---|---|---|---|---|
DATABASE_URL | - | PostgreSQL connection string (required) | |||
EMBEDDING_PROVIDER | ollama | ollama \ | openai \ | gemini \ | voyage |
EMBEDDING_DIMENSIONS | 768 | Must match model output dimensions | |||
CRAWL_CONCURRENCY | 5 | Concurrent HTTP requests during crawl | |||
CHUNK_SIZE | 800 | Approximate tokens per chunk | |||
CHUNK_OVERLAP | 100 | Overlap tokens between chunks | |||
CACHE_TTL_SECONDS | 3600 | In-memory query cache TTL | |||
TOP_K_RESULTS | 10 | Default search result count |
| Variable | Default | Description |
|---|---|---|
OLLAMA_BASE_URL | http://localhost:11434 | Ollama server URL |
OLLAMA_EMBEDDING_MODEL | nomic-embed-text | Model pulled and used via Ollama |
HUGGINGFACE_EMBEDDING_MODEL | Xenova/nomic-embed-text-v1 | ONNX fallback when Ollama is not running |
| Variable | Default | Description |
|---|
Nur der Anfang wird gezeigt; den Rest findest du im Repo