Research Server
Searches arXiv for papers and stores metadata locally, enabling queries for recent papers on specific topics and retrieval of paper details.
Connects to Google Gemini as the client, routing tool calls from Gemini to MCP servers for paper search and lookup.
Click on "Install 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., "@Research Serversearch for papers on reinforcement learning"
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.
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
Related MCP server: arXiv MCP Server
Requirements
Python 3.14 or newer
uvinstalled locallyA 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.pyInitialize the Project
Clone the repository and move into it:
git clone git@github.com:akhileshvj/MCPChatbotForPapers.git
cd MCPChatbotForPapersCreate and use the virtual environment managed by uv:
uv syncIf you prefer to install from the pinned requirements file instead of pyproject.toml, use:
uv pip install -r requirements.txtConfigure Environment Variables
Create a .env file in the project root and add your Gemini API key:
GOOGLE_API_KEY=your_google_genai_api_keyKeep 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 syncThat 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.pyRun the Chatbot
Start the interactive chatbot in a second terminal:
uv run python mcp_chatbot.pyThe 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 IDHow 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akhileshvj/MCPChatbotForPapers'
If you have feedback or need assistance with the MCP directory API, please join our Discord server