knowledge-mcp-server
A forkable RAG project with an MCP server for VS Code/Copilot, enabling indexing and querying of knowledge from URLs, PDFs, or TeX files.
README
knowledge-mcp-server
Small, forkable RAG project with an MCP server (for VS Code/Copilot) and a minimal web UI.
Quick Start
Prerequisite: install uv from https://docs.astral.sh/uv/
uv sync
source .venv/bin/activate
Run tests:
uv run pytest
Use It With Your Own Knowledge Set
- Start from a clean data state (optional but recommended):
rm -f data/docs/* data/vectorstore/*
echo '{}' > data/metadata.json
- Index content:
uv run python -m knowledge_mcp_server.cli index --url https://example.com
# or --pdf /path/to/file.pdf
# or --tex /path/to/file.tex
- Query via MCP or HTTP/web UI.
Register MCP Server In VS Code
code --add-mcp '{"name":"knowledge-mcp-server","command":"uv","args":["run","python","-m","knowledge_mcp_server.mcp_stdio_server"],"cwd":"'$(pwd)'"}'
Run Web UI
uv run uvicorn knowledge_mcp_server.mcp_server:app --reload --port 8000
Open http://127.0.0.1:8000/.
Project Layout
- Code:
src/knowledge_mcp_server/ - Tests:
tests/ - Runtime data:
data/docs/,data/vectorstore/,data/metadata.json
Defaults
- Embeddings:
all-MiniLM-L6-v2 - Chunking: 800 words, 100 overlap
- HTTP port:
8000
Docs
docs/MCP_SETUP.md- MCP registration and troubleshootingdocs/ARCHITECTURE.md- architecture notes
License
MIT (see LICENSE)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.