Autonomous AI Research Analyst MCP Server
Enables searching arXiv for academic papers and selecting papers to ingest, parse, and vectorize for semantic retrieval.
Click on "Deploy 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., "@Autonomous AI Research Analyst MCP Server Search arXiv for papers on transformer efficiency and summarize key findings with citations."
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.
🧠 Autonomous AI Research Analyst (MCP + Vector DB)
An end-to-end, autonomous AI research assistant built using the Model Context Protocol (MCP), Dockerized Qdrant Vector Database, and a ReAct (Reasoning + Acting) Agent loop.
Instead of relying on static knowledge, this agent dynamically searches live academic repositories (arXiv), parses complex multi-column PDFs into structured Markdown, chunks them hierarchically by document sections, generates local embeddings, and performs semantic retrieval to synthesize cited research reports.
🏗️ System Architecture
This project decouples the Agentic Reasoning Layer (Client) from the Data Ingestion & Retrieval Microservice (Server) using the industry-standard Model Context Protocol (MCP) over standard input/output (stdio).

Related MCP server: ResearchMCP
🛠️ Key Engineering Decisions & Features
Decoupled Microservice Architecture (FastMCP): Tools are exposed via
@mcp.tool()decorators, making the research backend completely modular and pluggable into custom Python agents, Claude Desktop, or Cursor.Layout-Aware Hierarchical Chunking: Standard character splitters destroy tabular data and sever context. This pipeline uses
pymupdf4llmto convert PDFs into structured Markdown—preserving complex statistical tables—followed byMarkdownHeaderTextSplitterto anchor every chunk with its parent section hierarchy (Section > Subsection).Local Privacy-First Embeddings: Uses HuggingFace's
all-MiniLM-L6-v2(SentenceTransformers) to generate 384-dimensional dense vector embeddings locally without external embedding API costs.Production Vector Storage: Connects asynchronously (
AsyncQdrantClient) to a containerized Qdrant instance running on Docker, storing text chunks alongside rich metadata payloads (sourceURL andsectionheaders) to guarantee accurate citations and prevent hallucinations.
🚀 Tech Stack
Agent Orchestration: Python, Groq Cloud API (
openai/gpt-oss-120b), Custom ReAct LoopProtocol & Microservice:
fastmcp,mcp(Model Context Protocol SDK)Vector Database: Qdrant (Running via Docker)
Document Parsing & Chunking:
pymupdf4llm,langchain-text-splittersEmbeddings:
sentence-transformers(all-MiniLM-L6-v2)Package Management:
uv
⚙️ Local Setup & Installation
1. Prerequisites
Python 3.11+
uvpackage manager
2. Spin Up Qdrant in Docker
Run a local Qdrant container exposed on port 6333:
docker run -p 6333:6333 -p 6334:6334 -v qdrant_storage:/qdrant/storage qdrant/qdrant3. Clone & Install Dependencies
git clone https://github.com
cd autonomous-research-analyst-mcp
# Sync virtual environment and install packages
uv sync4. Set Environment Variables
Set your Groq API key in your terminal session:
# Windows PowerShell
\$env:MY_API_KEY_AI="gsk_your_api_key_here"5. Run the Autonomous Agent
uv run python agent.py📊 Sample Execution & Results
User Query:
"Find a paper on climate change parameters in India, save it, and tell me the predicted carbon dioxide emission values for 2035."
Agent Execution Trace:
[Cycle 1]Agent invokessearch_arxiv(query="climate change parameters India").[Cycle 2]Agent selects "Analysis of various climate change parameters in India using machine learning" (arXiv:2201.10123) and executesingest_and_vectorize().[Cycle 3]Server parses the PDF into Markdown, preserving Table II (Model Accuracy) and Table III (Predictions), and upserts the vectors into Qdrant.[Cycle 4]Agent invokesquery_vector_db(query="2035 carbon dioxide emission predicted values").[Cycle 5]Agent synthesizes the retrieved tabular metrics into the final report:
Final Synthesized Output: Based on the paper "Analysis of various climate change parameters in India using machine learning" (
https://arxiv.org), the projected 2035 values derived from Exponential Regression models are:
Total Carbon Dioxide ($CO_2$) Emissions (Parameter 7):
5,801,529.111kilotons (Model $R^2$ accuracy:0.997)Total Greenhouse Gas Emissions (Parameter 11):
5,446,579.740kilotons of $CO_2$ equivalent (Model $R^2$ accuracy:0.988)
🔮 Future Improvements
Hybrid Search: Combine Qdrant dense vector search with sparse keyword search (BM25) to improve retrieval on exact acronyms and chemical formulas.
Multimodal Vision RAG: Integrate a vision-language model to generate text descriptions of embedded matplotlib/seaborn charts and graphs.
Available Tools
3 toolsingest_and_vectorizeIngest And VectorizeA
Downloads a PDF, extracts its layout structure as Markdown (preserving tables/headers), splits it hierarchically by document sections, and stores them in Qdrant.
Inputs: pdf_url (required). Returns: result
query_vector_dbQuery Vector DbB
Queries the running Qdrant Docker container using semantic similarity search. Returns the top matching text chunks found across all ingested documents.
Inputs: query (required), n_results. Returns: result
search_arxivSearch ArxivB
Search arXiv for scientific papers by keyword. Returns paper titles, summaries, and downloadable direct PDF URLs.
Inputs: query (required), max_results. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool occupies a distinct stage of the research pipeline: search external sources, ingest/vectorize a document, and query the vector store. There is no overlap in purpose or trigger conditions, so an agent can select the correct tool unambiguously.
All names use snake_case with clear verb_noun or verb_object patterns (search_arxiv, ingest_and_vectorize, query_vector_db). The single compound name still follows the same lowercase underscore convention.
Three tools form a tightly scoped, complete pipeline for search-ingest-query without redundancy. The surface is slightly thin compared to a typical 5-15 tool server, but each tool clearly earns its place.
The core research workflow (search arXiv, ingest PDFs, semantic query) is fully covered with no dead ends. Minor gaps remain around managing ingested content, such as listing or deleting documents and inspecting collection state.
Maintenance
Related MCP Connectors
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Paper search (free), literature review packs, hallucinated-citation checks, arXiv digests, citations
Neural search synthesizer, deep research dossier compiler, and citation tools.
arXiv and OpenAlex/Crossref paper search (an open Google Scholar alternative) as agent tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLM agents to search arXiv, download papers, parse PDFs into structured sections, and extract key findings using client-side LLMs. Features persistent caching and layout-aware PDF extraction.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to search arXiv, extract and analyze paper content, and build a personal semantically-searchable research library with saved papers and notes.-
- AlicenseAqualityCmaintenanceEnables an AI assistant to search scientific literature across OpenAlex and Semantic Scholar, download supported Elsevier and Springer Nature full texts, and build a local searchable index so questions can be answered with citations to original paper passages. It runs locally over stdio with CPU-based embeddings and needs no Qdrant account, Docker, GPU, or LLM API key of its own.11MIT
- AlicenseAqualityCmaintenanceEnables local literature workflows by searching arXiv, retrieving paper metadata, downloading and parsing PDFs, and retrieving page-cited body evidence for Q&A. It also exposes usage resources and templates for searching, analyzing, and summarizing papers via stdio MCP.4MIT