
research mcp server
基于 FastMCP 框架实现的学术论文搜索和管理服务,支持 AI 分析与 RESTful API。
Repository Info
About This Server
基于 FastMCP 框架实现的学术论文搜索和管理服务,支持 AI 分析与 RESTful API。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Research Server
A demonstration project showcasing how to create a custom MCP (Model Control Protocol) server using the FastMCP framework. This implementation serves as a practical example of building an MCP server that integrates with arXiv to search, retrieve, and manage academic papers, providing a structured interface for AI-assisted research. The project leverages FastMCP's capabilities to create custom tools, resources, and prompts, making it an excellent reference for developing your own MCP servers.
🚀 Features
- Paper Search: Search for academic papers on arXiv by topic
- Persistent Storage: Automatically saves paper metadata for future reference
- Topic Organization: Organizes papers by research topics
- RESTful API: Exposes endpoints through FastMCP for easy integration
- AI Integration: Includes prompts for Claude AI to analyze research papers
🛠️ Prerequisites
- Python 3.11.11 (recommended)
- pip (Python package manager)
- Virtual environment (recommended)
Note: This project is developed and tested with Python 3.11.11. While it may work with other Python 3.7+ versions, using 3.11.11 is recommended for compatibility.
🚀 Installation
-
Clone the repository:
git clone https://github.com/teddytesfa/research-mcp-server.git cd mcp_project -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install the required packages:
pip install -r requirements.txt
🏃♂️ Getting Started
-
Start the MCP server:
python research_server.py -
The server will start on
http://localhost:8001by default.
🛠️ API Endpoints
Tools
-
search_papers(topic: str, max_results: int = 5)- Search for papers on arXiv
- Returns: List of paper IDs
-
extract_info(paper_id: str)- Get detailed information about a specific paper
- Returns: Paper metadata as JSON
Resources
-
papers://folders- List all available topic folders
-
papers://{topic}- Get papers for a specific topic
🤖 AI Integration
The server includes a prompt template for Claude AI to analyze research papers. Use the generate_search_prompt function to get started with AI-assisted research.
📁 Project Structure
mcp_project/
├── papers/ # Directory for storing paper metadata
│ └── {topic}/ # Topic-specific directories
│ └── papers_info.json # Paper metadata
├── research_server.py # Main server implementation
└── README.md # This file
📝 Example Usage
-
Search for papers on a topic:
# Example search for papers about "machine learning" paper_ids = search_papers("machine learning", max_results=3) -
Get information about a specific paper:
paper_info = extract_info("2103.00001") print(paper_info)
📚 Learning Resources
This project is an implementation to demonstrate how to create your own MCP (Model Control Protocol) server. It showcases:
- Creating custom tools with
@mcp.tool() - Defining resources with
@mcp.resource() - Generating AI prompts with
@mcp.prompt() - Managing server state and persistence
- Integrating with external APIs (arXiv)
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Quick Start
Clone the repository
git clone https://github.com/teddytesfa/research-mcp-serverInstall dependencies
cd research-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.