Research MCP Server
Enables AI assistants to discover and manage arXiv papers by searching for papers, extracting metadata, and browsing saved collections, all within the conversation.
README
Research MCP Server
Researchers context-switch constantly between search tools and AI assistants. You find a paper in one tab, copy the title into another, ask questions in a third. The workflow is fragmented by design.
This MCP server brings arXiv paper discovery directly into any AI assistant that supports the Model Context Protocol. Search for papers, extract metadata, and browse saved collections -- all without leaving your conversation.
Why I built this
MCP is the emerging standard for connecting AI assistants to external tools. I wanted to build a practical MCP server that solves a real workflow problem while exploring the protocol's three core primitives:
- Tools --
search_papersandextract_infolet the AI search arXiv and pull structured paper metadata on your behalf - Resources --
papers://foldersandpapers://{topic}expose saved research as browsable context the AI can read directly - Prompts --
generate_search_promptcreates structured research workflows that guide systematic literature review
Quick start
# Clone and install
git clone https://github.com/spalit2025/research-mcp-server.git
cd research-mcp-server
pip install -e .
# Run the server
python -m research_mcp_server.server
Connect to Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"research": {
"command": "python",
"args": ["-m", "research_mcp_server.server"]
}
}
}
Then ask Claude: "Search for recent papers on transformer architectures"
Test with MCP Inspector
npx @modelcontextprotocol/inspector python -m research_mcp_server.server
# Opens web UI at http://localhost:6274
Example
Ask your AI assistant to search for papers:
"Find recent papers on transformer architectures"
The assistant calls search_papers("transformer architectures") and returns:
["2401.12345v1", "2401.23456v1", "2401.34567v1"]
Then it can call extract_info("2401.12345v1") to get details:
{
"title": "A Comprehensive Survey of Transformer Architectures",
"authors": ["Alice Smith", "Bob Jones"],
"summary": "This paper reviews the evolution of transformer architectures...",
"pdf_url": "https://arxiv.org/pdf/2401.12345v1",
"published": "2024-01-15"
}
Papers are saved locally in papers/transformer_architectures/papers_info.json
for future reference.
How it works
+-----------------------+
| AI Assistant |
| (Claude Desktop, |
| MCP Inspector) |
+-----------+-----------+
|
| stdio (JSON-RPC)
|
+-----------v-----------+
| Research MCP Server |
| |
| Tools: | +------------------+
| search_papers -------+------->| arXiv API |
| extract_info | | (external) |
| | +------------------+
| Resources: |
| papers://folders | +------------------+
| papers://{topic} ----+------->| papers/ |
| | | {topic}/ |
| Prompts: | | papers_info |
| generate_search_ | | .json |
| prompt | +------------------+
+------------------------+
API reference
Tools
search_papers -- Search arXiv for papers on a topic
{ "topic": "machine learning transformers", "max_results": 10 }
Returns list of paper IDs. Results cached locally in papers/ directory.
Input validation: empty topics rejected, max_results clamped to 1-50,
path traversal attempts blocked.
extract_info -- Get metadata for a specific paper
{ "paper_id": "2401.12345v1" }
Returns title, authors, summary, PDF URL, publication date.
Resources
papers://folders-- List all saved topic directoriespapers://{topic}-- Full paper details for a topic (titles, authors, summaries, PDF links)
Prompts
generate_search_prompt-- Generates a structured research workflow: search, extract, analyze, synthesize
Key design decisions
-
stdio transport: MCP supports both stdio and HTTP. stdio is simpler for local development and works out of the box with Claude Desktop.
-
File-based persistence: Papers are saved as JSON files organized by topic. Simple, inspectable, no database dependency. Good enough for a personal research tool.
-
Path traversal protection: Topic names are validated against directory traversal attacks before any file operations.
-
Bounded results:
max_resultsis capped at 50 to prevent accidental API abuse. -
Graceful error handling: Network failures, HTTP errors, and disk errors return structured error messages instead of crashing the server.
Project structure
research-mcp-server/
+-- src/research_mcp_server/
| +-- __init__.py # Package version
| +-- server.py # MCP server (tools, resources, prompts)
| +-- storage.py # File-based paper persistence
| +-- models.py # Paper dataclass
+-- tests/
| +-- conftest.py # Shared fixtures
| +-- test_search.py # search_papers tests
| +-- test_extract.py # extract_info tests
| +-- test_resources.py # Resource endpoint tests
| +-- test_storage.py # PaperStorage tests
| +-- test_server.py # Prompt generation tests
+-- .github/workflows/ci.yml # CI: lint + test (Python 3.10-3.13)
+-- pyproject.toml # Package config, dependencies, tool settings
+-- CONTRIBUTING.md
+-- TODOS.md
+-- LICENSE # MIT
+-- README.md
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest -v
# Lint and format
ruff check .
ruff format .
See CONTRIBUTING.md for more details.
Requirements
- Python 3.10+
- Internet connection (arXiv API access)
- An MCP-compatible client (Claude Desktop, MCP Inspector, or custom)
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。