paper-search-mcp
Provides tools for searching Semantic Scholar's scholarly literature index and retrieving paper metadata by Semantic Scholar ID, DOI, arXiv ID, PubMed ID, or Corpus ID.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@paper-search-mcp Search Semantic Scholar for recent papers on AI alignment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
paper-search-mcp
An MCP server exposing scholarly literature search across CrossRef, ERIC, Semantic Scholar, OpenAlex, and Unpaywall.
Tools
search_crossref(query, rows=20, filter=None, sort=None)— search CrossRef (all scholarly disciplines)get_crossref_work(doi)— full CrossRef metadata for one DOIsearch_eric(query, rows=20, start=0)— search ERIC (education research literature)get_eric_record(eric_id)— full ERIC metadata for one record (e.g."EJ1234567")search_semantic_scholar(query, rows=20)— search Semantic Scholar (all disciplines)get_semantic_scholar_paper(paper_id)— full metadata by S2 ID, or"DOI:...","ARXIV:...","PMID:...","CorpusID:..."search_openalex(query, rows=20, filter=None, sort=None)— search OpenAlex (all disciplines)get_openalex_work(work_id)— full metadata by OpenAlex ID (e.g."W2741809807") or DOIget_open_access_pdf(doi)— find a legal open-access PDF for a DOI via Unpaywall
All of these APIs are free and none require an account, except as noted below.
Related MCP server: LitSearch II
Configuration
Both environment variables are optional:
Variable | Effect |
| Sent as a |
| A personal Semantic Scholar key. Without one, S2 calls fall back to the shared unauthenticated rate limit, which is slower and more prone to |
A key enforces 1 request/sec cumulative across all S2 endpoints, so all
Semantic Scholar calls go through a shared throttle (min 1.05s between
requests) plus retry-with-backoff on 429 — the limit is enforced somewhat
burstily in practice.
Install
Requires Python 3.10+.
Option A — pipx (recommended)
Installs into an isolated environment and puts a paper-search-mcp command
on your PATH.
macOS / Linux
brew install pipx # or: python3 -m pip install --user pipx
pipx ensurepath # restart your terminal afterwards
pipx install git+https://github.com/bbutlerau/paper-search-mcp.git
which paper-search-mcpWindows (PowerShell)
py -m pip install --user pipx
py -m pipx ensurepath # restart PowerShell afterwards
pipx install git+https://github.com/bbutlerau/paper-search-mcp.git
where.exe paper-search-mcpEditable installs (pipx install -e <path>) are worth it if you plan to edit
the code or track updates: a git pull takes effect immediately with no
reinstall.
Option B — virtualenv from a clone
macOS / Linux
git clone https://github.com/bbutlerau/paper-search-mcp.git
cd paper-search-mcp
python3 -m venv .venv
.venv/bin/pip install -e .Windows (PowerShell)
git clone https://github.com/bbutlerau/paper-search-mcp.git
cd paper-search-mcp
py -m venv .venv
.venv\Scripts\pip install -e .Verify the install
The server takes no command-line arguments; it is configured entirely through the environment variables above. To confirm it starts, run it and check that it waits rather than exiting:
paper-search-mcp # pipx
.venv/bin/paper-search-mcp # venv (macOS/Linux)
.venv\Scripts\paper-search-mcp # venv (Windows)It will sit silently waiting for MCP traffic on stdin — that is correct behaviour, not a hang. Press Ctrl-C to exit. An immediate traceback (rather than silence) means the install is broken.
Connect to Claude Code
claude mcp add paper-search -s user \
-e PAPER_SEARCH_CONTACT_EMAIL=you@example.com \
-e SEMANTIC_SCHOLAR_API_KEY=<your-key> \
-- paper-search-mcpWith a venv instead of pipx, replace the final paper-search-mcp with the
absolute path to the launcher inside .venv.
Verify with claude mcp list — it should report paper-search: ✓ Connected.
Remove with claude mcp remove paper-search -s user.
Connect to Claude Desktop
Edit the config file:
macOS —
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows —
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"paper-search": {
"command": "/absolute/path/to/paper-search-mcp",
"env": {
"PAPER_SEARCH_CONTACT_EMAIL": "you@example.com",
"SEMANTIC_SCHOLAR_API_KEY": "your-key-here"
}
}
}
}Getting command exactly right matters:
Use an absolute path. Claude Desktop does not inherit your shell
PATH, so a barepaper-search-mcpwill not resolve.No trailing slash. A path ending in
/is treated as a directory and the spawn fails withFailed to spawn process: Not a directory.With pipx, prefer the shim at
~/.local/bin/paper-search-mcpover the venv-internal path (~/.local/pipx/venvs/…/bin/…). The shim is what pipx maintains, and it survives apipx reinstall.On Windows, use escaped backslashes and the
.exesuffix, e.g."C:\\Users\\you\\.local\\bin\\paper-search-mcp.exe".
Confirm the path resolves to a file before restarting:
ls -l ~/.local/bin/paper-search-mcp # macOS / Linux
where.exe paper-search-mcp # WindowsThen fully quit and reopen Claude Desktop (on macOS ⌘Q — closing the window is not enough).
Troubleshooting
If the tools do not appear, check the log:
macOS —
~/Library/Logs/Claude/mcp-server-paper-search.logWindows —
%APPDATA%\Claude\logs\mcp-server-paper-search.log
Two things about that log are easy to misread:
Server started and connected successfullyis printed optimistically, before the process is confirmed running. AFailed to spawn processline immediately after it is the real result.An
IncompleteFieldDefinitionWarningabout alifespanfield frompydantic_settingsis harmless. It comes from a dependency on Python 3.14, is written to stderr, and does not touch the JSON-RPC stream on stdout. Its absence alongside a spawn failure is a useful signal: it means Python never started, so the problem is thecommandpath.
Also make sure no stale paper-search entry exists under Settings →
Connectors; a duplicate there conflicts with the config-file entry.
Remote / networked use
server.py also supports streamable-HTTP transport, for running the server
on one machine and connecting from another. Running it locally over stdio is
simpler and faster, so prefer that unless you specifically need a shared
instance.
Variable | Meaning |
|
|
| Bind address (default |
| Comma-separated |
| Externally-visible base URL. When set, enables OAuth 2.1. Leave unset for local stdio use. |
| Where to persist OAuth clients/tokens (default: |
Bind to loopback and put a reverse proxy in front of it for TLS. Never expose it directly to the public internet — there is no real authentication here (see below).
About the OAuth layer
Claude Desktop's custom-connector flow always attempts OAuth Dynamic Client Registration against remote MCP servers, even ones advertising no auth, and there is currently no "no auth" option in the UI (upstream: anthropics/claude-ai-mcp#457, #402). Without an OAuth implementation, adding the connector fails with "Couldn't register with … sign-in service."
auth_provider.py exists to satisfy that flow. TrustedNetworkOAuthProvider
is a minimal OAuth 2.1 authorization server that auto-approves every client
with no login step. It is a protocol formality, not access control — it
assumes the server is already reachable only from a trusted network. It
supports Dynamic Client Registration, issues long-lived (1 year) bearer
tokens, and persists clients and tokens to MCP_AUTH_STATE_PATH so a restart
does not invalidate cached client registrations.
This entire layer is inert unless MCP_PUBLIC_URL is set, so local stdio
installs are unaffected by it.
A 401 from the /mcp endpoint when you have no token is the expected
response, and indicates the server is running correctly.
Development
pip install -e .The dependency on mcp is pinned to <2: version 2.x restructured
mcp.server.fastmcp and this server targets the 1.x API.
License
MIT — see LICENSE.
Available Tools
9 toolsget_crossref_workA
Fetch full CrossRef metadata for a single work by its DOI.
Args: doi: The DOI of the work, e.g. "10.1037/0003-066x.59.1.29".
Inputs: doi (required). Returns: object
get_eric_recordA
Fetch full ERIC metadata for a single record by its ERIC ID (e.g. "EJ1234567").
Args: eric_id: The ERIC document identifier, e.g. "EJ1234567" or "ED123456".
Inputs: eric_id (required). Returns: object
get_open_access_pdfA
Find a legal open-access PDF for a DOI via Unpaywall.
Use this after CrossRef/OpenAlex/ERIC turns up a paper you want to read in full. Returns the best OA copy plus any alternatives, or is_open_access false when no free version is known.
Args: doi: The DOI of the work, e.g. "10.1371/journal.pone.0000308".
Inputs: doi (required). Returns: object
get_openalex_workA
Fetch full OpenAlex metadata for a single work.
Args: work_id: An OpenAlex work ID (e.g. "W2741809807"), a bare DOI (e.g. "10.1037/0003-066x.59.1.29"), or a "doi:10.xxxx" string.
Inputs: work_id (required). Returns: object
get_semantic_scholar_paperA
Fetch full Semantic Scholar metadata for a single paper.
Args: paper_id: A Semantic Scholar paper ID, or a prefixed external ID such as "DOI:10.1037/0003-066x.59.1.29", "ARXIV:2106.15928", "PMID:12345678", or "CorpusID:215416146".
Inputs: paper_id (required). Returns: object
search_crossrefA
Search CrossRef for scholarly works (articles, books, proceedings, etc.).
Args: query: Free-text search query (e.g. title/author/topic keywords). rows: Max number of results to return (1-100). filter: Optional CrossRef filter string, e.g. "from-pub-date:2020-01-01,type:journal-article". sort: Optional sort field: relevance, published, is-referenced-by-count, etc.
Inputs: query (required), rows, sort, filter. Returns: result
search_ericA
Search the ERIC database (education research literature) via api.ies.ed.gov.
Args: query: Free-text search query, ERIC's Solr-style syntax is supported (e.g. 'title:"reading comprehension" AND author:Smith'). rows: Max number of results to return (1-100). start: Offset for pagination.
Inputs: query (required), rows, start. Returns: result
search_openalexA
Search OpenAlex for scholarly works across all disciplines.
Args: query: Free-text search query (title/topic/author keywords). rows: Max number of results to return (1-100). filter: Optional OpenAlex filter string, e.g. "from_publication_date:2020-01-01,type:article". sort: Optional sort string, e.g. "cited_by_count:desc" or "publication_date:desc".
Inputs: query (required), rows, sort, filter. Returns: result
search_semantic_scholarA
Search Semantic Scholar for papers across all disciplines.
Args: query: Free-text search query (title/topic/author keywords). rows: Max number of results to return (1-100).
Inputs: query (required), rows. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct combination of provider and action (search vs. get), with provider names clearly separating them. The only non-pair tool, get_open_access_pdf, has a unique purpose not covered by the others.
Tool names follow a consistent verb_noun pattern: search_<provider> and get_<provider>_<record> for all four services. The single outlier, get_open_access_pdf, still uses the 'get_' verb style, maintaining overall predictability.
Nine tools is well-scoped for a paper-search server, covering four major scholarly databases plus an OA PDF finder. Every tool provides a distinct, necessary capability without redundancy.
The domain is read-only scholarly search/retrieval, and the set covers the full lifecycle: search any provider, fetch detailed records, and obtain accessible full text. No obvious gaps or dead ends for the stated purpose.
Maintenance
Related MCP Connectors
Academic literature search, retrieval, and private library management on top of OpenAlex.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Scholarly search: OpenAlex, Crossref, arXiv, OpenCitations and PubMed in one endpoint.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAggregates academic paper search from multiple databases (OpenAlex, Semantic Scholar, etc.) with PDF storage and full-text search capabilities.1-
- AlicenseAqualityCmaintenanceEnables keyless, read-only literature research by searching OpenAlex, Crossref, Europe PMC, PubMed and arXiv at once, merging and ranking results, following citations, retrieving open-access full text, looking up clinical trials, verifying citations, and exporting BibTeX, RIS or CSL-JSON without any accounts or API keys.102MIT
- FlicenseNot gradedqualityAmaintenanceEnables searching and retrieving academic paper information from Semantic Scholar and Crossref, including metadata, abstracts, full-text when available, and structured responses for LLM tool use.-
- FlicenseNot gradedqualityAmaintenanceEnables LLMs such as Claude to search and retrieve academic paper information from Semantic Scholar and Crossref, including metadata, abstracts, full-text content when available, and topic/date-filtered results.-