Skip to main content

UniArticles MCP Server

License: AGPL-3.0 Commercial-Use

中文版本 (Chinese)


Overview

UniArticles(亿文通) is a unified academic literature retrieval server implementing the Model Context Protocol (MCP). Integrates multiple scholarly databases (Scopus, ArXiv) and literature APIs (PubMed, Google 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, author search, quota check.
    • ScienceDirect: Article search, metadata search, full-text retrieval (requires entitlement).
    • ArXiv: Search papers, search by ID, list recent papers, download PDF.
    • Paperscraper APIs: PubMed search and Google Scholar title search.
    • Google Scholar Stability Notice: Google Scholar access may be unstable or temporarily unavailable; this part is experimental/test-only.
  • 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. Elsevier API (Scopus database, 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.
    • Clarification: Scopus is an Elsevier database. The ELSEVIER_API_KEY configured here is an Elsevier API key and may also be used for other Elsevier API services allowed by your subscription and key scope. (The legacy variable name SCOPUS_API_KEY is still accepted for backward compatibility but is deprecated and will be removed in a future major version.)

Note: Even without the above API key, 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": [
        "--refresh", 
        "uniarticles-mcp"
      ],
      "env": {
        "ELSEVIER_API_KEY": "your_elsevier_api_key_here"
      }
    }
  }
}

If you do not want to force refresh the cache package every time you restart, then instead add the following content: (but this will cause you to need to manually update the package when the package is updated)

{
  "mcpServers": {
    "uniarticles-mcp-server": {
      "command": "uvx",
      "args": [
        "uniarticles-mcp"
      ],
      "env": {
        "ELSEVIER_API_KEY": "your_elsevier_api_key_here"
      }
    }
  }
}

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

If you encounter MCP error -32000: Connection closed when starting the service, please find the solution in the related Cherry Studio issue: https://github.com/CherryHQ/cherry-studio/issues/3264

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:

ELSEVIER_API_KEY=your_elsevier_api_key
ARXIV_DOWNLOAD_DIR=./arxiv_downloads

Project Structure

src/
└── uniarticles/
    ├── server.py        # MCP Server entry point
    └── sources/         # Data source modules
        ├── arxiv.py
        ├── paperscraper.py
        ├── scopus.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, view): Search for documents.
  • get_abstract_details(eid, view): Get detailed abstract information.
  • get_author_profile(author_id, view): Get author profile information.
  • search_authors(query, count, view): Search Scopus authors.
  • get_serial_title(issn, view): Look up journal/serial metadata (publisher, Open Access status, coverage years, subject areas, homepage) by ISSN.
  • get_quota_status(): Check Elsevier API quota (via Scopus endpoint).

ScienceDirect

  • search_sciencedirect(query, count, start, view): Search ScienceDirect records.
  • get_article_metadata(query, count, start, view): Search article metadata.
  • retrieve_article(identifier, identifier_type, view): Retrieve full-text article record.
  • get_article_objects(identifier, identifier_type, view): Retrieve metadata (filename, mimetype, type, download link) for an article's figures/tables/supplementary materials. Returns the object list and links only — does not download the binary content.

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.

Paperscraper

  • search_pubmed_papers(query, max_results): Search papers from PubMed.
  • search_scholar_papers(title): Search paper metadata from Google Scholar by title (experimental; may fail when Google Scholar is unstable).

🤝 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.

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-2.0.0.tar.gz (917.8 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-2.0.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uniarticles_mcp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6dc5bf09ae3d526f2631ff1261e3d4a2c49e4d607afd5bfdae53eaf720895fee
MD5 fe2a07d969e5ef7494ca18904b9f723a
BLAKE2b-256 63542e9d593b44767330fc08aba259adde3957e1a066d2101bfd5e20aee49254

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uniarticles_mcp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1231e3569a3f7928a825ed6fcad92d7d4deda0d8c58adc1fa012492ab18a3f
MD5 705db4eb7e011bad5afb51f3e907d691
BLAKE2b-256 28d13e365299f16352b4ffaa8957dc1dc38492bd2def877b86526dc1535ddbac

See more details on using hashes here.

Release history Release notifications | RSS feed

3.2.0

2 files

3.1.0

2 files

3.0.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.1

2 files

This release

2.0.0 This release

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

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