ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Wso2 Docs MCP Server

โดย iamvirulรุ่น 1.3.14i★ –iรันบนเครื่อง
ชื่อใน registryio.github.iamvirul/wso2-docs-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Semantic search over WSO2 docs (APIM, IS, MI, Choreo, Ballerina) via RAG and pgvector.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: DATABASE_URL, OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: DATABASE_URL, EMBEDDING_PROVIDER, OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "wso2-docs": {
      "command": "npx",
      "args": [
        "-y",
        "wso2-docs-mcp-server"
      ],
      "env": {
        "DATABASE_URL": "ใส่ค่าของคุณ",
        "EMBEDDING_PROVIDER": "ใส่ค่าของคุณ",
        "OPENAI_API_KEY": "ใส่ค่าของคุณ",
        "GEMINI_API_KEY": "ใส่ค่าของคุณ",
        "VOYAGE_API_KEY": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add wso2-docs --env DATABASE_URL='ใส่ค่าของคุณ' --env EMBEDDING_PROVIDER='ใส่ค่าของคุณ' --env OPENAI_API_KEY='ใส่ค่าของคุณ' --env GEMINI_API_KEY='ใส่ค่าของคุณ' --env VOYAGE_API_KEY='ใส่ค่าของคุณ' -- npx -y wso2-docs-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "wso2-docs": {
      "command": "npx",
      "args": [
        "-y",
        "wso2-docs-mcp-server"
      ],
      "env": {
        "DATABASE_URL": "ใส่ค่าของคุณ",
        "EMBEDDING_PROVIDER": "ใส่ค่าของคุณ",
        "OPENAI_API_KEY": "ใส่ค่าของคุณ",
        "GEMINI_API_KEY": "ใส่ค่าของคุณ",
        "VOYAGE_API_KEY": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "wso2-docs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "wso2-docs-mcp-server"
      ],
      "env": {
        "DATABASE_URL": "ใส่ค่าของคุณ",
        "EMBEDDING_PROVIDER": "ใส่ค่าของคุณ",
        "OPENAI_API_KEY": "ใส่ค่าของคุณ",
        "GEMINI_API_KEY": "ใส่ค่าของคุณ",
        "VOYAGE_API_KEY": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • DATABASE_URL จำเป็น env
    PostgreSQL connection string for pgvector (e.g. postgresql://user:pass@localhost:5432/wso2docs)
  • EMBEDDING_PROVIDER env
    Embedding backend to use: ollama (default, local), openai, gemini, or voyage
  • OPENAI_API_KEY ความลับ env
    Required only when EMBEDDING_PROVIDER=openai
  • GEMINI_API_KEY ความลับ env
    Required only when EMBEDDING_PROVIDER=gemini
  • VOYAGE_API_KEY ความลับ env
    Required only when EMBEDDING_PROVIDER=voyage

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub iamvirul ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7274 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 84% ของอีก 7274 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7274 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Wso2 Docs MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: DATABASE_URL, OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.14) เข้า registry 7 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต เมื่อวาน
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 21 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต เดือนที่แล้ว
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

WSO2 Docs MCP Server

"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:

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

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
WSO2 Librarylibraryhttps://wso2.com/library

Prerequisites

  • Node.js ≥ 20
  • Docker (for pgvector)
  • Embeddings - no API key required by default:
  • [Ollama](https://ollama.com) (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-from-npm) - simplest, no cloning required
  • [Clone and build](#clone-and-build) - for development or contributions

Install from npm

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, and npx wso2-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/wso2-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://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.

4. Index WSO2 documentation
# Index all products (first run downloads the embedding model automatically)

DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-docs-crawl

Index a single product (faster, great for testing)

DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-docs-crawl --product ballerina --limit 20

Force re-index even unchanged pages

DATABASE_URL="postgresql://wso2mcp:wso2mcp@localhost:5432/wso2docs" \ wso2-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": { "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

Verify

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-...".


Clone and build
1. Clone and install
git clone https://github.com/iamvirul/wso2-docs-mcp-server.git

cd wso2-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@wso2mcp.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/wso2-docs-mcp-server with 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"

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_wso2_docsSemantic search across all products. Optional product and limit filters.
get_wso2_guideSearch within a specific product (apim, mi, bi, choreo, is, ballerina, library).
explain_wso2_conceptBroad concept search across all products, returns 8 top results.
list_wso2_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 } ]


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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx