agentic-researcher
Enables LLMs to autonomously research the web, store knowledge in a local vector database, and retrieve semantic memory without vendor lock-in.
README
Local AI Memory Server (MCP + RAG)
Why I Built This
Most beginner AI projects are just basic API wrappers around ChatGPT. I wanted to build something closer to real enterprise AI infrastructure.
This project is a Decoupled Agentic RAG (Retrieval-Augmented Generation) Server. Instead of hardcoding an AI to a specific task, I built a standalone memory and tooling backend using the new Model Context Protocol (MCP). This means any compatible LLM (like Claude or Cursor) can connect to this server, autonomously scrape the web for research, and store that knowledge in a local vector database for future semantic searches—all without vendor lock-in.
Architecture & Tech Stack
This project solves the "N-to-M integration problem" by completely decoupling the LLM "brain" from the database and tool "hands."
- Protocol Layer (FastMCP): Acts as a universal "USB-C port" for AI. It exposes my Python functions to any MCP-compliant LLM via JSON-RPC, making them instantly discoverable.
- Vector Database (ChromaDB): Provides local, persistent semantic memory rather than relying on exact keyword matches.
- Embeddings (
all-MiniLM-L6-v2): A lightweight Microsoft model running via ONNX that converts unstructured text into multi-dimensional coordinate vectors entirely locally (zero API costs). - ETL Pipeline (
httpx&beautifulsoup4): A custom web scraper that extracts raw HTML, strips the DOM tags, chunks the text, and loads it directly into ChromaDB.
Core Engineering Features
- Relevance Filtering (Distance Thresholds): Vector databases always return something, even if it's irrelevant. I implemented a strict mathematical distance threshold (L2 distance) that acts as a filter, dropping low-confidence matches to drastically reduce LLM hallucinations.
- Dual-Memory State Sync: Synchronously maintains state in two places: human-readable markdown files (
.md) on the hard drive and machine-readable vectors inside ChromaDB. - Agentic Autonomy: The LLM isn't just a passive chatbot. It independently determines when to trigger the
fetch_and_remember_websitetool to research unknown concepts on the live internet before formulating an answer.
Quick Start (Local Setup)
This project uses uv for lightning-fast dependency management.
Install Dependencies
# Install uv if you haven't already
curl -LsSf [https://astral.sh/uv/install.sh](https://astral.sh/uv/install.sh) | sh
# Install project requirements
uv add "fastmcp[cli]" chromadb httpx beautifulsoup4
**Run the MCP Server**
To test the tools locally without an external LLM client, launch the FastMCP Inspector UI:
uv run fastmcp dev inspector server.py
**Connect to an LLM Client (e.g., Claude Desktop) **
Add the following configuration to your claude_desktop_config.json:
"mcpServers": {
"agentic-researcher": {
"command": "uv",
"args": ["run", "fastmcp", "run", "server.py"]
}
}
**Available MCP Tools**
list_notes: Scans the local directory for existing markdown context.
read_note: Ingests the raw text of a specific document into the LLM context window.
save_note: Writes human-readable text to disk and upserts the mathematical embedding into ChromaDB.
search_memory: Converts a user query into a vector and retrieves contextually similar documents based on conceptual meaning.
fetch_and_remember_website: An autonomous scraping agent that cleans external HTML and pipes it directly into semantic memory.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。