Swarms MCP Documentation Server

Swarms MCP Documentation Server

swarms_mcpserver•byransom-alpha

A FastMCP-based documentation server that indexes local repositories with hybrid semantic and keyword search and exposes tools for agents to search, list, retrieve, reindex, and healthcheck documentation.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Combines semantic vector search with BM25 keyword search for chunk-level documentation retrieval.
  • •Exposes FastMCP tools for searching docs, listing indexed files, getting a chunk, forcing a reindex, and checking server status.
  • •Watches the corpora folder and triggers live reindexing when files are modified, created, or deleted.
  • •Uses specialized loaders for Python, notebook, Markdown, text, and YAML files.

BEST FOR

  • •Giving AI agents local retrieval over cloned framework documentation repositories.
  • •Building a custom local AI knowledge base from any public or private repository.
  • •IDE agent integrations that need on-demand documentation search and chunk retrieval.

ABOUT SWARMS_MCPSERVER

Swarms MCP Documentation Server is cataloged as an MCP server attributed to ransom-alpha. A FastMCP-based documentation server that indexes local repositories with hybrid semantic and keyword search and exposes tools for agents to search, list, retrieve, reindex, and healthcheck documentation. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Swarms MCP Documentation Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server keep the index updated when documentation files change?

Yes. It watches the corpora folder and triggers a live reindex on any modification, creation, or deletion without requiring a restart.

Does indexing require an OpenAI API key?

Yes. The environment file must contain OPENAI_API_KEY, and chunks are embedded via the OpenAI API.

Can I force a reindex while the server is running?

Yes. You can run the server with the reindex flag or use the swarm_docs.reindex tool.

Upstream README

View this exact version on GitHub

README.md · 678159d2ef61 · Fetched 2026-11-13 11:31:54 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🐝 Swarms MCP Documentation Server

IDE Ready Error Tolerant Dynamic MD Loader Healthcheck Tool Smart Load Logs

Version 2.2


📖 Description

This program is an Agent Framework Documentation MCP Server built on FastMCP, designed to enable AI agents to efficiently retrieve information from your documentation database. It combines hybrid semantic (vector) and keyword (BM25) search, chunked indexing, and a robust FastMCP tools API for seamless agent integration.

Key Capabilities:

  • Efficient, chunk-level retrieval using both semantic and keyword search
  • Agents can query, list, and retrieve documentation using FastMCP tools
  • Local-first, low-latency design (all data indexed and queried locally)
  • Automatic reindexing on file changes
  • Modular: add any repos to corpora/, support for all major filetypes
  • Extensible: add new tools, retrievers, or corpora as needed

Main modules:

  • embed_documents.py → Loads, chunks, and embeds documents
  • swarms_server.py → Brings up the MCP server and FastMCP tools


🌟 Key Features

  • Hybrid Retriever 🔍: Combines semantic and keyword search.
  • Dynamic Markdown Handling 📄: Smart loader based on file size.
  • Specialized Loaders ⚙️: .py, .ipynb, .md, .txt, .yaml, .yml.
  • Chunk and File Summaries 📈: Displays chunk counts along with file counts.
  • Live Watchdog 🔥: Instantly responds to any changes in corpora/.
  • User Confirmation for Costs ✅: Confirms before expensive embeddings.
  • Healthcheck Endpoint 🚑: Ensure server is ready for use.
  • Local-First 🗂️: All repos indexed locally without external dependencies.
  • Safe Deletion Helper 🔥: Auto-delete broken/mismatched indexes.

🏗️ Version History

VersionDateHighlights
2.22025‑04‑25Split embed/load from server; full chunk counting in loading summaries
1.02025‑04‑25Dynamic Markdown loader, color logs, Healthcheck tool
0.72025‑04‑25Specialized file loaders for .py, .ipynb, .md
0.52025‑04‑10OpenAI large model embeddings, extended MCP tools
0.12025‑04‑10Initial version with generic loaders

📚 Managing Your Corpora (Local Repos)

Because Swarms and other frameworks are very large, full corpora are not pushed to GitHub.

Instead, you clone them manually under corpora/:

# Inside your project folder:
cd corpora/

# Clone useful frameworks:
git clone https://github.com/SwarmsAI/Swarms
git clone https://github.com/SwarmsAI/Swarms-Examples
git clone https://github.com/microsoft/autogen
git clone https://github.com/langchain-ai/langgraph
git clone https://github.com/openai/openai-agent-sdk

✅ Notes:

  • Add any repo — public, private, custom.
  • Build your own custom AI knowledge base locally.
  • Large repos (>500MB) are fine; all indexing is local.

🚀 Quick Start

# 1. Activate virtual environment
venv\Scripts\Activate.ps1

# 2. Install all dependencies
pip install -r requirements.txt

# 3. Configure OpenAI API Key
echo OPENAI_API_KEY=sk-... > .env

# 4. (Load and embed documents
python embed_documents.py

# 5. Start MCP server
python swarms_server.py
# If no index is found, the server will prompt you to embed documents automatically.

⚙️ Configuration

  • Corpus: Drop repos inside corpora/
  • Environment Variables:
    • .env must contain OPENAI_API_KEY
  • Index File Support:
    • Both chroma-collections.parquet and chroma.sqlite3 are supported. .parquet is preferred if both exist.
  • Auto-Embedding:
    • If no index is found, the server will prompt you to embed and index your documents automatically.
  • Optional:
    • Disable Chroma compaction if you prefer:
      setx CHROMA_COMPACTION_SERVICE__COMPACTOR__DISABLED_COLLECTIONS "swarms_docs"
      
  • Command-Line Flags:
    • --reindex → trigger a refresh reindex during server run.

🔄 File Watching & Auto Reindexing

The MCP Server watches corpora/ for any file changes:

  • Any modification, creation, or deletion triggers a live reindex.
  • No need to restart the server.

🛠️ Available FastMCP Tools

ToolDescription
swarm_docs.searchSearch relevant documentation chunks
swarm_docs.list_filesList all indexed files
swarm_docs.get_chunkGet a specific chunk by path and index
swarm_docs.reindexForce reindex (full or incremental)
swarm_docs.healthcheckCheck MCP Server status

❓ Troubleshooting

  • Q: I get 'No valid existing index found' when starting the server.
    • A: The server will now prompt you to embed and index documents. Accept the prompt to proceed, or run python embed_documents.py manually first.
  • Q: Which index file is used?
    • A: The server will use chroma-collections.parquet if available, otherwise chroma.sqlite3.
  • Q: I want to force a reindex.
    • A: Run python swarms_server.py --reindex or use the swarm_docs.reindex tool.

📋 Example Usage

# Search the documentation
result = swarm_docs.search("How do I load a notebook?")
print(result)

# List all available files
files = swarm_docs.list_files()
print(files)

# Get a specific document chunk
chunk = swarm_docs.get_chunk(path="examples/agent.py", chunk_idx=2)
print(chunk["content"])

🧰 Extending & Rebuilding

  • Add new docs → drop into corpora/, then:

    python swarms_server.py --reindex
    
  • Schema changes → (e.g. different metadata structure):

    python swarms_server.py --reindex --full
    
  • Add new repo → Drop folder under corpora/, reindex.

  • Recommended for mostly read-only repos:

    setx CHROMA_COMPACTION_SERVICE__COMPACTOR__DISABLED_COLLECTIONS "swarms_docs"
    

🔗 IDE Integration

Plug directly into Windsurf Cascade:

"swarms": {
  "command": "C:/…/Swarms/venv/Scripts/python.exe",
  "args": ["swarms_server.py"]
}

Then you can access swarm_docs.* tools from Cascade automations.


📦 Requirements

💡 Python 3.11 Environment Required

Create your environment explicitly:

python3.11 -m venv venv

Then install with:

pip install -r requirements.txt

✅ MCP Server Ready

After boot:

  • Proper loading summaries
  • Safe confirmation before expensive actions
  • Auto file watching and reindexing
  • Windsurf plug-in ready
  • Full tool coverage

You're good to cascade it! 🏄‍♂️


📈 Flow Diagram

                          +------------------+
                          |    🖥️ MCP Server  |
                          +------------------+
                                  |
     +---------------------------------------------------+
     |                                                   |
+-------------+                                     +-----------------+
|  📁 Corpora |                                     | 🔎 FastMCP Tools |
|  Folder     |                                     | (search, list,   |
|  (markdown, |                                     | get_chunk, etc.) |
|  code, etc) |                                     +-----------------+
+-------------+                                               |
      |                                                       |
+-----------------+                                   +----------------+
|  📚 Loaders      |                                   | 🧠 Ensemble    |
| (Python, MD, TXT)|                                   | Retriever (BM25|
|  Split into Chunks|                                  | + Chroma)      |
+-----------------+                                   +----------------+
      |                                                       |
+-----------------+                                   +----------------+
| ✂️ Text Splitter |                                   | 🧩 Similarity   |
| (RecursiveCharacter) |                              | Search (chunks) |
+-----------------+                                   +----------------+
      |                                                       |
+-----------------+                                   +----------------+
| 💾 Embed chunks  |  —OpenAI Embedding (small)—>    | 🛢️ Chroma Vector |
| via OpenAI API  |                                   | DB (Local Store) |
+-----------------+                                   +----------------+
      |                                                       |
+-----------------+                                   +----------------+
| 📡 Reindex Watcher|                                  | 👀 File Watchdog |
| (Auto detect      |                                  | (Auto reindex   |
| new/modified files|                                  | on file events) |
+-----------------+                                   +----------------+

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Swarms MCP Documentation Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/swarms_mcpserver)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research