Metadata-Version: 2.4
Name: mcp-scholaris
Version: 0.1.4
Summary: mcp-name: io.github.penny4nonsense/mcp-scholaris - Academic paper search and retrieval via arXiv, Semantic Scholar, PubMed, Unpaywall.
Author-email: Jason Parker <penny4nonsense@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Jason Parker
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: academic,arxiv,mcp,papers,pubmed,semantic-scholar
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Requires-Dist: httpx>=0.27
Requires-Dist: pymupdf>=1.24
Requires-Dist: python-dotenv>=1.0
Description-Content-Type: text/markdown

﻿<!-- mcp-name: io.github.penny4nonsense/mcp-scholaris -->

# mcp-scholaris

An MCP server for retrieving academic papers from open access sources. Provides search across arXiv, Semantic Scholar, and PubMed, with full text retrieval via arXiv PDFs, PubMed Central (BioC API), and Unpaywall. No paywalls, no grey area — legitimate open access only.

## Installation

``````bash
pip install mcp-scholaris
``````

## Tools

### ``search_papers``

Search for academic papers by topic, author, or keyword.

**Parameters:**
- ``query`` (required) — search terms
- ``sources`` (optional) — list of sources to search: ``arxiv``, ``semantic_scholar``, ``pubmed``. Defaults to all three.
- ``max_results`` (optional) — maximum results per source. Defaults to 5.

### ``fetch_paper``

Fetch the full text of a paper. Tries open access sources in order: arXiv → PubMed Central → Unpaywall. Provide at least one identifier.

**Parameters:**
- ``arxiv_id`` — e.g. ``2301.00001`` or ``arxiv:2301.00001``
- ``pubmed_id`` — PubMed ID (PMID), e.g. ``36383508``
- ``doi`` — e.g. ``10.1371/journal.pone.0276755``

## Configuration

Semantic Scholar works without an API key but is rate-limited. For higher limits, create a ``.env`` file in your working directory:

``````
SEMANTIC_SCHOLAR_API_KEY=your_key_here
``````

API keys are free at [semanticscholar.org](https://www.semanticscholar.org/product/api).

## Usage with an MCP client

Add to your MCP client configuration:

``````json
{
  "mcpServers": {
    "scholaris": {
      "command": "scholaris"
    }
  }
}
``````

Or run directly:

``````bash
scholaris
``````

The server communicates over stdio using the MCP protocol (JSON-RPC 2.0).

## Sources

| Source | Search | Full Text |
|---|---|---|
| arXiv | ✓ | ✓ PDF |
| Semantic Scholar | ✓ | ✓ when OA PDF available |
| PubMed | ✓ | ✓ via BioC API (PMC articles) |
| Unpaywall | — | ✓ for any DOI with OA version |

## License

MIT
