Skip to main content

Unified MCP server for multi-source academic literature retrieval

Project description

UniArticles MCP Server

License: AGPL-3.0 Commercial-Use

中文版本 (Chinese)


Overview

A unified academic literature retrieval server implementing the Model Context Protocol (MCP). Integrates multiple scholarly databases (Scopus, ArXiv, Semantic Scholar) into a single, standardized API for LLM agents (like Claude).

Features

  • Unified Interface: Single search structure for all sources.
  • Multi-Source Support:
    • Scopus: Search, abstract details, author profiles, citing papers, quota check.
    • ArXiv: Search papers, search by ID, list recent papers, download PDF.
    • Semantic Scholar: Search papers.
  • Standardized Returns: Consistent JSON structure (ok, source, query, count, items, error).
  • Secure Configuration: API keys managed via environment variables.

⚠️ API Key Requirements

This server integrates multiple data sources, and some advanced features require API keys:

  1. Scopus (Required):

    • How to get: Apply at Elsevier Developer Portal.
    • Restriction: Your institution must have a subscription to Elsevier's services; otherwise, you cannot use related functions even with an API Key.
  2. Semantic Scholar (Recommended):

    • How to get: Apply at Semantic Scholar API Key Form.
    • Restriction: Using an institutional email is recommended. Without an API Key, rate limits and results will be severely restricted.

Note: Even without the above API keys, you can still use other functions normally.

Installation & Usage

Method 1: Direct Integration with LLM Clients (Recommended)

Suitable for Cherry Studio, LM Studio, Claude Desktop, Trae, etc.

This project is published on PyPI, so you can configure it directly without downloading the full source code. Since these LLM clients are already configured with Python and uv environments, no additional downloads are required.

Simply add the following configuration to your client's MCP settings (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "uniarticles-mcp-server": {
      "command": "uvx",
      "args": [
        "uniarticles-mcp"
      ],
      "env": {
        "SCOPUS_API_KEY": "your_scopus_api_key_here",
        "SEMANTIC_SCHOLAR_API_KEY": "your_semantic_scholar_api_key_here"
      }
    }
  }
}

📖 Troubleshooting? See: Step-by-Step Configuration Guide

Method 2: Local Installation (Advanced)

Requires Python 3.10+ and uv (recommended) or pip. Useful for developers or those who want to modify the source code.

Using uv:

# Clone the repository
git clone https://github.com/your-username/UniArticles_MCPserver.git
cd UniArticles_MCPserver

# Sync dependencies and run
uv sync
uv run uniarticles-mcp

Using pip:

# Clone and setup venv
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies
pip install -e .

# Run
python -m uniarticles

Configuration

Create a .env file in the project root:

SCOPUS_API_KEY=your_scopus_api_key
SEMANTIC_SCHOLAR_API_KEY=your_semantic_scholar_api_key
ARXIV_DOWNLOAD_DIR=./arxiv_downloads

Project Structure

src/
└── uniarticles/
    ├── server.py        # MCP Server entry point
    └── sources/         # Data source modules
        ├── arxiv.py
        ├── scopus.py
        ├── semanticscholar.py
        └── ...
tests/                   # Integration and verification tests
pyproject.toml           # Project metadata and dependencies

Testing

Run automated integration tests:

python -m unittest discover tests

Verify MCP protocol handshake:

python tests/verify_server.py

Available Tools

Scopus

  • search_scopus(query, count, sort): Search for documents.
  • get_abstract_details(eid): Get detailed abstract information.
  • get_author_profile(author_id): Get author profile information.
  • get_citing_papers(eid, count): Get citing papers.
  • get_quota_status(): Check API quota.

ArXiv

  • search_arxiv(query, max_results): Search papers.
  • list_papers(max_results): List recent papers.
  • read_paper(paper_id): Get paper metadata.
  • download_paper(paper_id, filename, output_dir): Download PDF.

Semantic Scholar

  • search_semantic_scholar(query, limit): Search papers.

🤝 Call for Contributions

Due to the author's background in Chemistry, I am less familiar with databases and API developments in other research fields. I warmly welcome contributions and Pull Requests (PRs) from the community to add more data sources!

⚖️ License & Acknowledgments

License

AGPL-3.0 License with Commercial Restriction

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

🔴 Commercial Use Restriction: Commercial use of this software is permitted ONLY with explicit written authorization from the author.

Special Acknowledgments

  • ScopusMCP: ScopusMCP is the first literature retrieval MCP tool the author successfully developed, but initially it was quite bloated and difficult to port.Thanks to my roommate (https://github.com/qwe4559999) for the suggestion to use pypi and uv for packaging.

  • ArxivMCPserver: Integrated directly from the ArxivMCPserver project.

Special Declaration

This project uses AI-generated content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uniarticles_mcp-1.0.0.tar.gz (784.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uniarticles_mcp-1.0.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file uniarticles_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: uniarticles_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 784.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for uniarticles_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e61ae5af70a9793bbee18042912ac5c25f829142239a8251bb1ff0b9aedcef0
MD5 79fd3e2a3230091b60905c857f74a582
BLAKE2b-256 439384cc38838d8a7436a2150df524639aa4bd45ddad38d4f15e6cf3e6d84093

See more details on using hashes here.

File details

Details for the file uniarticles_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uniarticles_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d87bac781efc7f7732593efc6322f3e6b9cffb2119e26da6b7b64e556349bca
MD5 fbdf3d45d34c9a96c02d5fa478d5c0f2
BLAKE2b-256 b9a16c45f106276f65df65eaab3f52cbb40bf82bfc56897ef42d4e971a931dd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page