PanCite MCP
Scholarly discovery and citations with evidence you can trace.
PanCite connects research assistants to open scholarly metadata, specialist academic indexes,and optional commercial databases through the Model Context Protocol. Search without an API key,resolve stable identifiers, check references against their sources, and export citations withoutasking a language model to invent the missing fields.
This is a citation and metadata service for the assistant you already use. It works alongsidereference managers such as Zotero and writing environments that support MCP.
PanCite 0.3.0 includes the MCP service and the pancite-panwrite companion.The PanWrite integration needs a PanWrite release that speaks pancite.panwrite/v1. Marketplace listings and nativeclient plugin qualification are tracked independently.
Quick start · PanWrite integration ·Provider guide · Troubleshooting ·Release information
- Useful without credentials: Crossref, DataCite and Europe PMC are the default search sources.arXiv and Semantic Scholar are also available without mandatory keys.
- Optional specialist and commercial access: OpenAlex, Google Scholar through SerpAPI or SearchApi,Scopus and Web of Science Starter have explicit configuration and provider selection.
- Source-backed records: namespaced identifiers, retrieval timestamps, field attribution,incomplete-author warnings and provider-specific citation counts.
- Deterministic export: BibTeX, RIS and CSL-JSON from retrieved metadata. No model is required.
- Current MCP: Python SDK 2.2, the 2026-07-28 specification, structured tool results,resources, prompts, progress, stdio and Streamable HTTP. Earlier clients remain supported bythe SDK's legacy protocol path.
Quick start
Python 3.11+ and uv are required.
uvx --from pancite==0.3.0 pancite --version
uvx --from pancite==0.3.0 pancite --no-env-file --list-providers
For an MCP client with a mcpServers configuration:
{
"mcpServers": {
"pancite": {
"command": "uvx",
"args": ["--from", "pancite==0.3.0", "pancite", "--no-env-file"]
}
}
}
The client starts MCP over stdio. No API key or .env file is required. Running the servercommand directly waits for a client; it is not an interactive search shell. If your clientcannot find uvx, use its absolute executable path. The first run downloads the package andits dependencies.
For a persistent installation, including the PanWrite companion:
uv tool install pancite==0.3.0
pancite-panwrite --check
The diagnostic starts the actual MCP service and lists providers without querying vendor APIs.See the PanWrite setup for the separate integration and executable-path setting.
For local HTTP clients:
uvx --from pancite==0.3.0 pancite --no-env-file --transport streamable-http --port 8000
Connect to http://127.0.0.1:8000/mcp. The CLI binds only to loopback and serves a single trustboundary. A public, multi-user deployment needs authentication, credential isolation and itsown deployment integration; the CLI does not supply those features.
PanCode
The pancode/ directory is a PanCode pack that launches this release with uvx:
pancode hub install <checkout>/pancode --user
pancode mcp trust pancite
pancode mcp trust pancite --surface # prints the digest; repeat with --hash <digest>
PanCode passes the server no key from your shell. Keyed providers need your own user-scopedeclaration with the keys in its env. See thepack page.
Sources and access
| Provider ID | Coverage | Access | Setup |
|---|---|---|---|
crossref |
Publisher-deposited DOI metadata and citation counts | Free; default | Optional PANCITE_CONTACT_EMAIL for the polite pool |
datacite |
Datasets, software and other DOI-registered research outputs | Free; default | None |
europe_pmc |
Biomedical literature, PubMed/PMC records, references and citations | Free; default | None |
arxiv |
Preprints in physics, mathematics, computing and related fields | Free | Select explicitly; paced to one request per three seconds |
semantic_scholar |
Academic Graph discovery and citation traversal | Free/shared anonymous limits; optional key | Optional SEMANTIC_SCHOLAR_API_KEY |
openalex |
Multidisciplinary research graph | Free credits / metered account access | OPENALEX_API_KEY |
serpapi |
Google Scholar through SerpAPI vendor API | Commercial; account allowances vary | SERPAPI_API_KEY |
searchapi |
Google Scholar through SearchApi.io vendor API | Commercial; account allowances vary | SEARCHAPI_API_KEY |
scopus |
Elsevier's curated literature index | Institutional/commercial entitlement | SCOPUS_API_KEY; optional SCOPUS_INSTTOKEN |
wos |
Clarivate Web of Science Starter | Institutional/commercial entitlement | WOS_API_KEY |
find-open-access can additionally enrich DOI records with Unpaywall whenUNPAYWALL_EMAIL is configured. It returns reported legal OA locations and licensing information;it does not download PDFs or bypass access restrictions.
Free access is subject to provider rate limits and terms. Anonymous Semantic Scholar can beheavily throttled. OpenAlex access policies have changed over time; PanCite requires a key forthat adapter even when an anonymous request happens to succeed. Institution keys do not bythemselves guarantee subscription access or access outside an institution's network.
Commercial and metered adapters are called only when selected explicitly, when resolving theirown namespaced IDs, or when deliberately configured as search defaults. Setting a key alone doesnot add a vendor to default searches. list-providers reports configuration, capabilities anddocumentation links without testing access or revealing key values.
Research workflows
Use PanCite to build a literature shortlist, repair an uncertain reference, check the sourcebehind a citation count, or prepare a bibliography for your writing tool. For a full writingworkflow, the PanWrite companion connects discovery to evidence tables, outlinesand manuscript work while keeping candidate references visible for review.
Ask your assistant to use the tools directly, or start with the literature-review andbibliography-audit MCP prompts. Example tool arguments:
{"query": "reproducible machine learning benchmarks", "providers": ["crossref", "arxiv"], "limit": 5}
{"identifier": "10.1038/nature14539", "format": "bibtex"}
{"citation": "10.1038/nature14539", "expected_title": "Deep learning", "expected_year": 2015}
{"identifier": "PMID:26017442", "direction": "references", "provider": "europe_pmc", "limit": 10}
{"identifiers": ["10.1038/nature14539", "arxiv:1706.03762"], "format": "csl-json"}
| Tool | Purpose |
|---|---|
list-providers |
Inspect source capabilities, access tiers and credential configuration |
search-papers |
Concurrent federated search, conservative deduplication and per-source pagination |
resolve-paper |
Retrieve and validate a DOI or namespaced identifier; optionally merge selected sources |
get-citation |
Export one resolved record as bibtex, ris or csl-json |
verify-citation |
Check that an identifier or BibTeX entry exists and matches supplied title and year; never checks claim support |
batch-citations |
Resolve and export 1–20 identifiers with ordered results, partial failures and progress |
related-papers |
Page through a source's citations or references |
paper-metrics |
Return observed citation counts, separated by provider and index |
find-open-access |
Find source-reported OA locations, with optional Unpaywall enrichment |
enhance-citation |
Normalize BibTeX formatting while preserving supplied bibliographic facts |
find-scholar-id |
Legacy Scholar discovery through SerpAPI or SearchApi; returns candidates for review |
search-papers defaults to 10 results per provider, not 10 overall. Results interleave eachprovider's ranking, then merge compatible records. limit is 1–50, or at most 20 when usingSerpAPI or SearchApi. Use each provider's next_offsets with the same limit, selecting that provider forthe next call. Europe PMC search uses next_cursors instead: pass its token as cursor,select only europe_pmc, keep the same query and limit, and leave offset at zero.Offsets must be multiples of the limit, up to 10,000. year_from, year_to andopen_access_only filter the fetched page; unknown values are excluded. Ordering interleaves eachprovider's own ranking, so the first record is the first selected provider's top hit. Forcomputer-science topics, select arxiv and semantic_scholar; plain arXiv queries require everynon-stopword term, while explicit ti:, abs:, AND or OR syntax passes through unchanged. Abstracts are omittedfrom search results by default; set include_abstract: true or resolve a record to retrieve them.Search records are compact by default: field_sources is empty while sources still names everyprovider. Set detail: "full" or resolve a record for per-field provenance. For small contextwindows, detail: "minimal" returns only id, title, year, the first three authors, venue andDOI/arXiv/PMID, and limit_total caps records across all providers:{"query": "burst buffers", "limit": 5, "limit_total": 5, "detail": "minimal"}.A record without an abstract carries abstract: null and abstract_missing_reason.Provider search languages differ: explicit advanced queries use that provider's syntax.
Supported identifiers include 10.1038/nature14539, arxiv:1706.03762, PMID:26017442,PMC12345, openalex:W2919115771, s2:<paperId>, s2:CorpusId:<number>,scholar:<numericClusterId>, scopus:<numericId>, and WOS:<recordId>. DOI, arXiv and PubMedURLs are recognized. Arbitrary URLs are not fetched, and unprefixed numeric strings are notassumed to be PubMed or Scholar IDs.
DOI resolution tries Crossref, DataCite and Europe PMC in order until a matching record isretrieved. An explicit providers list instead checks each compatible selected source andretains evidence and disagreements. Native identifiers route to their corresponding source.A title search always returns candidates; it never silently declares the first result a match.
Read the MCP resources pancite://methodology, pancite://providers andpancite://workflows for machine-accessible guidance.
What “verified” means
Verification establishes that an identifier exists in retrieved metadata and checks any suppliedtitle and year. It does not establish that a paper's findings are correct, that every authoris present, that the paper supports a specific claim, or that no retraction exists. A provideroutage produces unavailable, rather than a claim that the citation is fabricated.verify-citation reports match: "identifier" when only the identifier was checked andmatch: "metadata" when a supplied title or year also matched; claim_support is alwaysnot_checked.
Exports omit unavailable metadata. Partial author lists generate warnings; BibTeX uses otherswhere appropriate. Citation counts retain their source, index and observation timestamp and arenever summed across databases. Counts from different providers are not directly interchangeable.Metadata can contain errors or conflicting publication years, and an absent retraction flag isnot proof that a paper is unretracted.
CSL-JSON is structured bibliographic data. Use a CSL processor or your reference manager to renderAPA, IEEE or a journal's house style. enhance-citation supports default and compact formatting;it does not infer keywords, awards, impact factors or missing authors.
Configuration
Copy .env.example to .env only if you need optional settings. Existing process environmentvariables take precedence. The CLI loads ./.env, or an explicit --env-file; it never searchesparent directories. Importing the Python package does not read .env or call external services.Pass --no-env-file for clients that manage credentials themselves. The PanWrite companion andplugin manifests always use this mode.
| Variable | Default | Meaning |
|---|---|---|
PANCITE_DEFAULT_PROVIDERS |
crossref,datacite,europe_pmc |
Explicit search source IDs, comma separated |
PANCITE_TIMEOUT |
12 |
Timeout in seconds for each HTTP request |
PANCITE_OPERATION_TIMEOUT |
40 |
Time budget for a provider operation or identifier resolution |
PANCITE_RETRIES |
1 |
Retries for transport failures, HTTP 429 and 5xx responses |
PANCITE_CONCURRENCY |
6 |
Maximum simultaneous outbound requests |
PANCITE_CACHE_TTL |
300 |
In-process response-cache lifetime in seconds; 0 disables it |
PANCITE_CACHE_SIZE |
256 |
Maximum cached responses; 0 disables caching |
Cached records retain their original retrieval and citation-observation timestamps. The cache isbounded and partitions responses by credentials. Responses larger than 8 MB are rejected. LongRetry-After cooldowns return a provider issue instead of holding the call open. Keys and upstreamerror bodies are excluded from tool errors. Local stderr logging keeps stdout clean for MCP.
See provider details, migration notes, andproduct direction for access nuances and boundaries.
Development and verification
To work from source:
git clone https://github.com/PanStudio/pancite.git
cd pancite
uv sync --locked
uv run ruff check src tests scripts
uv run ruff format --check src tests scripts
uv run mypy src/pancite
uv run python scripts/prepare_release.py --check
uv run python scripts/marketplaces.py --check
uv run pytest -q
uv build
The automated suite uses synthetic provider fixtures and mock HTTP, plus real local stdio andStreamable HTTP processes. It requires no vendor credentials and blocks external network accessfrom the test process. Paid and institutional adapters have fixture-based contract coverage;live entitlement testing requires an account with access.
An explicit public-API smoke test is available separately:
uv run python scripts/smoke_public.py
It ignores account credentials and only contacts Crossref, DataCite, Europe PMC, arXiv andanonymous Semantic Scholar. Rate limits and network failures are reported as outcomes.
The official MCP Tasks extension is not advertised. SDK 2.2 does not implement it yet.batch-citations is a bounded synchronous workflow with progress and cancellation, not a durablejob queue. The roadmap describes the criteria for adding persistenttasks, local libraries and further licensed providers.
The launch kit includes positioning, listing copy, a demo script,and promotional drafts. The marketplace inventory tracks 41channels and leads, including verified routes, duplicate channels and inactive or unresolvedsites. Source metadata, portable plugin manifests and image assets are prepared for review.See data handling before configuring optional providers or hosting.
License
Apache-2.0. Copyright 2026 PanStudio; see NOTICE. Provider content, API access and redistribution remain subject to each source's terms.