Papers

io.github.LAHutchins91v1.0.0更新於 Oct 5, 2026

Scholarly paper search with real citations for AI assistants, over MCP.

已驗證Streamable HTTP可網頁執行Web Search & ScrapingKnowledge & Memory

概覽

AI 產生的概覽

讓助理在 OpenAlex、Semantic Scholar、PubMed、Crossref 與 arXiv 中檢索學術文獻,依識別碼開啟論文、追蹤引用並產生引用格式。

功能
Papers 提供四個工具:search_papers 依關鍵字或問題檢索,可選年份範圍、領域、開放取用標記與來源;get_paper 依 DOI、PMID、arXiv id 或 OpenAlex work id 取得單筆記錄與摘要;find_related_papers 查詢 cited_by 或 references;format_citation 產生 APA、MLA、Chicago 或 BibTeX。結果帶有來源連結與上游 API 回傳的識別碼,API 沒有結果時就維持空白,不會用編造的引用補上。
適用情境
適合學生、研究人員、寫作者與臨床人員,讓助理查找真實論文並產出有識別碼佐證的引用。當文獻檢索與引用格式化屬於日常工作流程,且希望使用比 Consensus、SciSpace、Elicit 更輕量的替代方案時值得加入。
執行需求
遠端 Streamable HTTP 端點,使用 OAuth 2.1(動態用戶端註冊與 PKCE);清單未宣告驗證,但 README 說明呼叫工具需要權杖,而 initialize、tools/list 與 ping 不需要。自架需要 Node.js,正式環境需要 APP_BASE_URL、AUTH_SIGNING_SECRET 與 SCHOLARLY_CONTACT_EMAIL;選用的 NCBI_API_KEY 與 SEMANTIC_SCHOLAR_API_KEY 可提高速率限制。
安裝前請注意
自架部署可透過 STRIPE_SECRET_KEY、STRIPE_PRICE_MONTHLY、STRIPE_PRICE_YEARLY 與 STRIPE_WEBHOOK_SECRET 啟用 Stripe 計費,啟用後呼叫工具需要處於 trialing 或 active 狀態的訂閱;金額只在 Stripe Checkout 中顯示。AUTH_SIGNING_SECRET、BLOB_READ_WRITE_TOKEN 等機密不得提交到儲存庫。作者姓名由顯示名稱拆分,"van" 之類的助詞可能落到錯誤部分,發布引用前應先核對。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Papers,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "papers": {
      "type": "http",
      "url": "https://papers-mcp.vercel.app/mcp"
    }
  }
}

README

Papers by Ouroboros

Papers is a remote MCP server for students, researchers, writers, and clinicians who want an assistant to search and cite real papers. It is a lighter, independent alternative to Consensus, SciSpace, and Elicit.

The assistant can search OpenAlex, Semantic Scholar, PubMed, Crossref, and arXiv, open a paper by DOI, PMID, or arXiv id, see what cites a paper or what that paper cites, and format APA, MLA, Chicago, or BibTeX. Every result includes a source link and an identifier that came back from one of those APIs. If an API returns nothing, Papers returns nothing. It does not fill gaps with invented citations.

  • MCP endpoint: https://<your-host>/mcp
  • Works with ChatGPT, Claude, Gemini, Grok, Cursor, and any client that speaks Streamable HTTP plus OAuth 2.1 (dynamic client registration and PKCE)

server.json is the MCP Registry manifest (io.github.LAHutchins91/papers). Its remotes[0].url is a placeholder (https://papers-mcp.vercel.app/mcp). Change it to the origin you actually deploy, and set APP_BASE_URL to that same origin.

Connect

Leave the client id and secret empty so the client can register itself.

Cursor, in ~/.cursor/mcp.json or a project .cursor/mcp.json:

json
{  "mcpServers": {    "papers": {      "url": "https://<your-host>/mcp"    }  }}

Claude Code:

bash
claude mcp add --transport http papers https://<your-host>/mcp

Other clients: add the same URL and choose OAuth. The consent screen names the assistant and the papers scope. Tool discovery (initialize, tools/list, ping) does not require a token. Calling a tool does.

Tools

  • search_papers — question or keywords, with optional year range, field, open-access flag, and source (openalex, semantic_scholar, pubmed, crossref, arxiv, or all)
  • get_paper — one record and its abstract, by DOI, PMID, arXiv id, or OpenAlex work id
  • find_related_papers — cited_by or references for that identifier
  • format_citation — apa, mla, chicago, or bibtex from the fetched metadata

Titles are kept as the source wrote them. Author names are split from display names, so particles such as “van” can land in the wrong part and deserve a look before you publish the citation.

Trial and billing

Start a 14-day trial from the account page after you connect an assistant. Stripe Checkout is the only place an amount is shown. Monthly and yearly plans use the price ids you configure. Papers does not create Stripe products.

When STRIPE_SECRET_KEY, STRIPE_PRICE_MONTHLY, and STRIPE_PRICE_YEARLY are all set, tool calls require a Stripe subscription in trialing or active status. When they are not set, GET /health reports billingConfigured: false and an OAuth-signed caller can use the tools. Set the Stripe variables before you expose a deployment publicly.

Storage

Paper search is stateless. Subscription snapshots and used authorization-code ids share one store:

STORAGE_BACKENDBehavior
memory (default)Process-local. Fine for tests and a single Node process. A second process can still accept a code this process already used.
fileOne JSON document at STORAGE_PATH (default data/accounts.json). For a single Docker host.
blobOne private Vercel Blob at STORAGE_BLOB_PATH (default papers/accounts.json). Use this on Vercel so a code cannot be replayed across instances. Requires BLOB_READ_WRITE_TOKEN.

The document is { accounts, usedCodes }. Each account is { userId, stripeCustomerId, subscriptionId, subscriptionStatus, currentPeriodEnd, plan, updatedAt }. usedCodes maps an authorization-code id to its expiry, in unix seconds. Expired ids are dropped on every write. An older file that is only a map of accounts is still read. There is no separate database schema. When billing is configured, Stripe is the source of truth: a cold process looks the customer up by metadata.papers_user_id if the snapshot is missing.

OAuth access tokens and client registrations are signed tokens, not rows. Set AUTH_SIGNING_SECRET in production so tokens survive a restart. On Vercel, set STORAGE_BACKEND=blob before the deployment is public.

Environment

VariableRequiredPurpose
APP_BASE_URLProductionPublic origin, no trailing slash. OAuth issuer and MCP audience.
AUTH_SIGNING_SECRETProductionHMAC secret for OAuth tokens and the account cookie.
SCHOLARLY_CONTACT_EMAILProductionMailto address in User-Agent and polite-pool parameters for OpenAlex, Crossref, and PubMed.
SUPPORT_EMAILNoShown on the support page. Falls back to the scholarly contact address.
NCBI_API_KEYNoHigher PubMed rate limit.
SEMANTIC_SCHOLAR_API_KEYNoHigher Semantic Scholar rate limit. Sent as x-api-key.
STRIPE_SECRET_KEYTo chargeStripe secret key.
STRIPE_PRICE_MONTHLYTo chargeExisting monthly price id.
STRIPE_PRICE_YEARLYTo chargeExisting yearly price id.
STRIPE_WEBHOOK_SECRETTo chargeWebhook signature secret. Point Stripe at POST /billing/webhook.
STORAGE_BACKENDNomemory, file, or blob.
STORAGE_PATHNoJSON file used when the backend is file.
STORAGE_BLOB_PATHNoBlob pathname when the backend is blob. Defaults to papers/accounts.json.
BLOB_READ_WRITE_TOKENWith blobRead-write token for the Vercel Blob store. The SDK reads this itself.
PORTNoDefaults to 43127.

Do not commit secrets. Copy what you need into the host’s environment, not into the repo.

Run locally

bash
npm installnpm run dev

Open http://127.0.0.1:43127. Health is GET /health.

bash
npm testnpm run typecheck

Tests call the public APIs that do not need keys. Stripe is not called. Semantic Scholar often answers 429 from shared IP space; the tool reports that rate limit and does not substitute a made-up paper.

Deploy

Vercel: vercel.json builds api/index.ts and routes every path to that function, including logo.jpg in the function bundle. Repository files such as /package.json and /src/* are not served as static files. Set the environment variables above, set APP_BASE_URL to the deployment origin, set STORAGE_BACKEND=blob, and update server.json remotes[0].url to https://<that-host>/mcp. Create the Blob store in the Vercel project and leave its read-write token in BLOB_READ_WRITE_TOKEN. Stripe’s webhook endpoint is POST /billing/webhook.

Docker:

bash
docker build -t papers-mcp .docker run --rm -p 43127:43127 -e APP_BASE_URL=http://127.0.0.1:43127 -e AUTH_SIGNING_SECRET=replace-me -e [email protected] papers-mcp

The container listens on 43127.

Rate limits

Requests are spaced per host: OpenAlex about 10/s, Crossref about 4/s, PubMed about 3/s without an NCBI key, Semantic Scholar about 1/s without a key, and arXiv at least 3 seconds between calls. A descriptive User-Agent is always sent. The contact email is included only when SCHOLARLY_CONTACT_EMAIL is set.

License

MIT. Copyright Lawrence Hutchins. See LICENSE.

來源:README.md,提交 6106670

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Oct 5, 2026