Marcus Local MCP Server
Uses OpenAI's text-embedding-3-small model to create vector embeddings for semantic search across documentation sites and local code repositories.
Click on "Install 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., "@Marcus Local MCP Serversearch for 'authentication flow' in my Credo Protocol repo"
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.
π Marcus Local MCP Server
A Model Context Protocol (MCP) server that indexes documentation sites and local code repositories for semantic search by AI assistants.
π― What Is This?
This is a local MCP server that enables AI assistants (Cursor, Claude Desktop, ChatGPT) to semantically search through:
Documentation websites - Crawled and indexed from any docs site
Local code repositories - All text files from your projects
It uses OpenAI embeddings to create a vector database (ChromaDB) that AI assistants can query through the Model Context Protocol.
Think of it as: Giving your AI assistant instant access to searchable documentation and your entire codebase.
Related MCP server: MCP RAG Server
π How It Works
βββββββββββββββββββ
β AI Assistant β (Cursor, Claude, ChatGPT, etc.)
β (via MCP) β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β MCP Server β (Python - stdio)
β main.py β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ ββββββββββββββββ
β ChromaDB ββββββββ€ OpenAI β
β (Vector Store) β β Embeddings β
ββββββββββ¬βββββββββ ββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Indexed Sources β
β β’ Documentation β
β - Moca Network β
β - Your Docs β
β β’ Repositories β
β - Your Codebase β
β - Local Projects β
ββββββββββββββββββββββββThe Flow:
Index - Crawl docs OR read local repo files
Chunk - Split content into 800-token chunks
Embed - Create OpenAI embeddings (batched for speed)
Store - Save in ChromaDB vector database
Search - AI assistant queries via MCP protocol
Retrieve - Return relevant chunks from docs/code
π How to Run It
1. Setup
# Clone repository
git clone <your-repo>
cd crawl4ai_test
# Install Node.js dependencies
npm install
# Setup Python virtual environment
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install Python dependencies
pip install -r mcp-docs-server/requirements.txt
# Install Crawl4AI
pip install -U crawl4ai
crawl4ai-setup2. Configure
Create .env file in mcp-docs-server/:
OPENAI_API_KEY=your_openai_api_key_here
EMBEDDING_MODEL=text-embedding-3-small
DEFAULT_RESULTS=53. Run the Web UI
# Start Next.js server
npm run dev
# Open browser
open http://localhost:30304. Connect to Cursor/Claude
Add to your AI assistant config:
For Cursor (~/.cursor/mcp.json or project config):
{
"mcpServers": {
"marcus-mcp-server": {
"command": "/path/to/your/venv/bin/python3",
"args": ["/path/to/crawl4ai_test/mcp-docs-server/server/main.py"]
}
}
}For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"marcus-docs": {
"command": "/path/to/your/venv/bin/python",
"args": ["/path/to/crawl4ai_test/mcp-docs-server/server/main.py"]
}
}
}π How to Use It
Adding Documentation
Via Web UI:
Go to http://localhost:3030
Click "Add New Docs"
Enter:
URL:
https://docs.example.comSource Name:
Example DocsMax Pages:
50(or unlimited)
Click "Start Indexing"
Wait for completion
Via Command Line:
cd mcp-docs-server
source ../venv/bin/activate
python scripts/crawler.py https://docs.example.com "Example Docs" 50
python scripts/indexer_multi.py "Example Docs"Adding Repositories
Via Web UI:
Go to http://localhost:3030
Click "Add Repository"
Enter:
Repository Path: Drag-and-drop folder OR paste path
Source Name: Auto-generated from folder name
Click "Start Indexing"
Watch live progress
What gets indexed:
β All text files (
.js,.py,.md,.tsx,.json,.css, etc.)β Auto-skips:
node_modules,.git,venv,build,.next, etc.β Batched embeddings (50-100x faster)
Via Command Line:
cd mcp-docs-server
source ../venv/bin/activate
python scripts/repo_indexer.py "/path/to/your/repo" "My Project"Searching
From Web UI:
Enter query:
"How do I initialize the SDK?"Select source (Docs, Repos, or All)
Click "Search Documentation"
View results
From AI Assistant:
Search all sources:
@marcus-mcp-server search for "authentication flow"Filter by specific source:
@marcus-mcp-server search for "BorrowInterface component"
with source="Credo Protocol"Example usage in Cursor:
User: Using my marcus-mcp-server, show me how authentication
is implemented in the Credo Protocol repository
AI: [Searches indexed repository and returns relevant code chunks]Pro Tip: Always filter by source name to get focused results and save context tokens.
Managing Sources
View Sources:
See all indexed docs and repos on the main page
Filter by "Docs" or "Repos" tabs
Expand to see individual pages/files
Delete Sources:
Click trash icon next to any source
Confirm deletion
Source and all chunks are removed
π Project Structure
crawl4ai_test/
βββ pages/ # Next.js UI
β βββ index.js # Main page (search + sources)
β βββ add.js # Add documentation
β βββ add-repo.js # Add repository
β βββ api/ # API routes
β βββ mcp-search.js # Search endpoint
β βββ mcp-info.js # Get index info
β βββ add-docs-crawl.js # Crawl docs
β βββ add-docs-index.js # Index docs
β βββ add-repo-index.js # Index repository
β βββ mcp-delete-source.js # Delete source
βββ components/
β βββ ui/ # shadcn/ui components
β βββ home/ # Page components
βββ mcp-docs-server/ # MCP Server
β βββ server/
β β βββ main.py # MCP server (stdio)
β βββ scripts/
β β βββ crawler.py # Crawl docs with Crawl4AI
β β βββ indexer_multi.py # Index docs
β β βββ repo_indexer.py # Index repositories
β β βββ get_source_pages.py # Get pages/files
β β βββ search.py # Search
β β βββ delete_source.py # Delete sources
β βββ data/
β β βββ chroma_db/ # Vector database
β β βββ chunks/ # Metadata
β β βββ raw/ # Crawled JSON
β βββ requirements.txt
βββ venv/ # Python environmentπ¨ Built With
Frontend: Next.js 15 + shadcn/ui + Tailwind CSS
Backend: Python 3.13 + MCP Protocol
Crawler: Crawl4AI
Vector DB: ChromaDB
Embeddings: OpenAI (text-embedding-3-small)
Status: β Fully Operational | π€ MCP Ready | π Search Enabled
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables semantic code search across local projects and Git repositories using AI embeddings with ChromaDB. Supports both OpenAI and local Ollama models for private, enterprise-ready code analysis and similar code discovery.Last updated44MIT
- Alicense-qualityCmaintenanceEnables AI assistants to search and retrieve information from your knowledge base using RAG (Retrieval-Augmented Generation) with hybrid search, document indexing, and ChromaDB vector storage.Last updated34MIT
- Flicense-qualityDmaintenanceEnables semantic search across documents and code repositories using RAG (Retrieval-Augmented Generation) with vector embeddings. Automatically indexes PDF documents and performs relevance-scored lookups through ChromaDB and sentence transformers.Last updated
- Flicense-qualityDmaintenanceEnables AI assistants to index and search codebases using semantic search powered by multiple embedding providers (OpenAI, VoyageAI, Gemini, Ollama) and vector database storage.Last updated
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Long-term memory for AI assistants. Hybrid retrieval, query expansion, auto-topics.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyβ¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marcussy34/localMCP-crawl4ai-RAG'
If you have feedback or need assistance with the MCP directory API, please join our Discord server