MCP Research Server (arXiv)
Enables searching and retrieving academic papers from arXiv by topic, allowing users to discover research papers and extract their metadata including titles, authors, abstracts, and PDF links through natural language queries.
README
MCP Research Server (arXiv)
This project is a hands-on implementation of the Model Context Protocol (MCP) to demonstrate how an AI client can dynamically discover and call tools exposed by a server.
The server exposes research-related tools backed by arXiv, and the client uses an LLM (Mistral via Ollama) to decide when and how to call those tools.
This project is intentionally simple and educational, built to understand MCP fundamentals end-to-end.
What is MCP?
Model Context Protocol (MCP) is a standard that allows:
- A server to expose tools (functions + schemas)
- A client (LLM-powered) to discover available tools dynamically
- The LLM to decide when to call a tool
- Tool results to be fed back into the model for final reasoning
Think of MCP as a clean contract between:
- Tools
- Schemas
- LLM reasoning
- Execution
Project Architecture
MCP Research Server (arXiv)
This project is a hands-on implementation of the Model Context Protocol (MCP) to demonstrate how an AI client can dynamically discover and call tools exposed by a server.
The server exposes research-related tools backed by arXiv, and the client uses an LLM (Mistral via Ollama) to decide when and how to call those tools.
This project is intentionally simple and educational, built to understand MCP fundamentals end-to-end.
What is MCP?
Model Context Protocol (MCP) is a standard that allows:
- A server to expose tools (functions + schemas)
- A client (LLM-powered) to discover available tools dynamically
- The LLM to decide when to call a tool
- Tool results to be fed back into the model for final reasoning
Think of MCP as a clean contract between:
- Tools
- Schemas
- LLM reasoning
- Execution
Project Architecture
MCP Server (research_server.py)
The MCP server exposes two tools:
1. search_papers
Searches arXiv for papers by topic and stores metadata locally.
Inputs
- topic (string)
- max_results (int)
Returns
- List of arXiv paper IDs
2. extract_info
Fetches stored metadata for a given paper ID.
Inputs
- paper_id (string)
Returns
- Title, authors, abstract, PDF link, publish date
The server runs using stdio transport, which is ideal for local development and MCP inspectors.
MCP Client (mcp_chatbot.py)
The client:
- Connects to the MCP server over stdio
- Discovers available tools dynamically
- Uses Mistral (via Ollama) to decide:
- Whether a tool is needed
- Which tool to call
- What arguments to pass
- Calls the tool through MCP
- Feeds the tool result back to the LLM for a final response
The LLM never hardcodes tool logic — it reasons based on tool schemas.
LLM Used
- Model: Mistral
- Runtime: Ollama (local)
- Reason: Fast, local, great for experimentation without API costs
Make sure Ollama is running:
ollama serve
## Installation
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
## Running MCP server
python research_server.py
## Running MCP client
python mcp_chatbot.py
## Example interaction
Query: Can you search papers around physics and find 2 of them?
Searching arXiv for 'physics' (2 papers)...
Papers found:
- 1910.11775v2
- hep-ex/9605011v1
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.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
E2B
Using MCP to run code via e2b.