SourceTap
БесплатноНе проверенEnables AI assistants to query and search library documentation from GitHub repositories or web pages using RAG and web scraping.
Описание
Enables AI assistants to query and search library documentation from GitHub repositories or web pages using RAG and web scraping.
README
SourceTap is an MVP of a Model Context Protocol (MCP server that lets your AI assistant learn and search any library directly from its GitHub repository or documentation URL.
Features
This project provides two tools:
query_docs(url, query): A RAG (Retrieval-Augmented Generation) tool.- Input: Takes a URL to a ZIP archive (e.g., a GitHub repo archive) and a search query.
- Process:
- Downloads the ZIP file (cached via SQLite to prevent redundant downloads).
- Extracts
.mdand.mdxcontent. - Indexes the content in-memory using
minsearch(TF-IDF/Keyword search).
- Output: Returns the full content of the top 5 most relevant documentation files.
- Use Case: Helps AI agents understand libraries that are too new, private, or obscure for their base references.
fetch_web_content(url): A reader tool.- Input: Any webpage URL.
- Process: Proxies the request through
r.jina.aito convert HTML to clean, LLM-friendly Markdown. - Output: The text content of the page.
- Use Case: Inspecting specific documentation pages, blog posts, or issue threads.
Installation
To use this tool with your AI assistant (e.g., Claude Desktop, Cline), add the following configuration to your MCP Settings file:
{
"mcpServers": {
"sourcetap": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/sourcetap",
"run",
"python",
"main.py"
]
}
}
}
Note: Replace
/absolute/path/to/sourcetapwith the actual path to this directory on your machine. Theuvcommand will automatically handle dependency installation and environment setup when the server starts.
Project Architecture
The Tech Stack
- MCP Framework: FastMCP (Python)
- Web Scraping: Jina Reader API (via httpx)
- Search Engine: minsearch (TF-IDF/Keyword search)
- Caching: SQLite with WAL mode
- Used MCP: Context7
- AI Assistant: Google Gemini 3 Flash + Antigravity IDE
Caching Strategy
The project uses SQLite for persistent caching of downloaded ZIP files.
- WAL Mode: Write-Ahead Logging enabled for better concurrent read/write performance.
Search Implementation
Uses minsearch for in-memory document search.
- Text Fields: Indexes both
contentandfilenamefor comprehensive search. - TF-IDF Scoring: Ranks documents by term frequency-inverse document frequency.
- Top-K Retrieval: Returns the 5 most relevant documents per query.
- Memory Efficient: Index is rebuilt per query (no persistent index storage).
Limitations & Possible Improvements
- Keyword-Only Search: Currently uses TF-IDF. Semantic search with embeddings (e.g.,
all-MiniLM-L6-v2) would enable conceptual matching. - Full-File Retrieval: Returns entire files. Smart chunking by headers would improve precision.
- Markdown-Only: Only indexes
.mdand.mdxfiles. Code parsing (.py,.ts) would enable technical implementation queries. - ZIP Archives: Downloads full repositories. GitHub Tree API would enable sparse downloading of only needed files.
- No Persistent Index: Index is rebuilt per query. Persistent indexing would improve performance for repeated queries.
- Single-Threaded Cache: SQLite cache is synchronous. Async cache operations would improve throughput.
Установка SourceTap
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/maxvoltage/sourcetapFAQ
SourceTap MCP бесплатный?
Да, SourceTap MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для SourceTap?
Нет, SourceTap работает без API-ключей и переменных окружения.
SourceTap — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить SourceTap в Claude Desktop, Claude Code или Cursor?
Открой SourceTap на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare SourceTap with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
