Research Server
Enables searching arXiv papers and retrieving paper metadata through MCP tools.
README
MCPChatbotForPapers
An MCP-based paper search chatbot that connects a Gemini client to local MCP tools for arXiv search and paper metadata lookup.
What's Included
mcp_chatbot.py: interactive chatbot that connects to configured MCP servers and routes tool calls through Geminiresearch_server.py: MCP server that searches arXiv and stores paper metadata locallypapers/: generated cache of paper search results, grouped by topicserver_config.json: MCP server launch configuration used by the chatbot
Requirements
- Python 3.14 or newer
uvinstalled locally- A Google Gemini API key
Quick Start
- Clone the repo and enter the project directory.
- Create a local
.envfile in the project root and add your Google API key. - Install dependencies with
uv sync. - Start the research server.
- Start the chatbot in a second terminal and ask a question.
git clone git@github.com:akhileshvj/MCPChatbotForPapers.git
cd MCPChatbotForPapers
uv sync
uv run python research_server.py
uv run python mcp_chatbot.py
Initialize the Project
Clone the repository and move into it:
git clone git@github.com:akhileshvj/MCPChatbotForPapers.git
cd MCPChatbotForPapers
Create and use the virtual environment managed by uv:
uv sync
If you prefer to install from the pinned requirements file instead of pyproject.toml, use:
uv pip install -r requirements.txt
Configure Environment Variables
Create a .env file in the project root and add your Gemini API key:
GOOGLE_API_KEY=your_google_genai_api_key
Keep this file local. It is not meant to be pushed to GitHub.
The chatbot loads environment variables with python-dotenv.
Install Dependencies
If you are starting from a clean environment, install the project dependencies with:
uv sync
That will install the packages listed in pyproject.toml, including:
google-genaimcp[cli]python-dotenvarxivfastapiuvicorn
Run the MCP Research Server
The research server exposes the paper search tools over MCP stdio:
uv run python research_server.py
Run the Chatbot
Start the interactive chatbot in a second terminal:
uv run python mcp_chatbot.py
The chatbot reads server_config.json, launches the configured MCP servers, and then waits for queries at the prompt.
Example Usage
Inside the chatbot, try prompts like:
Search papers about diffusion models
Find recent papers on quantum computing
Look up paper details for a saved paper ID
How It Works
mcp_chatbot.pyconnects to the MCP servers listed inserver_config.json.- Gemini receives the available tool schemas.
- When Gemini requests a tool call, the chatbot routes it to the correct MCP server.
research_server.pysearches arXiv and stores results underpapers/<topic>/papers_info.json.
Notes
papers/is populated automatically when you run searches.- If you change server commands in
server_config.json, restart the chatbot so it reloads the config. - The project currently uses local stdio-based MCP servers, so each server process must be runnable from the repository root.
Troubleshooting
- If the chatbot cannot connect to Gemini, check that
GOOGLE_API_KEYis set in.env. - If
research_server.pyfails to start, make surearxivandmcpare installed in the active environment. - If you see stale results, delete the relevant folder under
papers/and run the search again.
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.