sophotron
MCP server for searching and retrieving philosophy papers, combining Semantic Scholar, OpenAlex, Unpaywall, CrossRef, and PhilArchive with PDF resolution, taxonomy browsing, and a personal library.
README
Sophotron
sopho- (σοφία, wisdom) + -tron (instrument) — a wisdom-instrument for philosophy research.
Sophotron is a tool for searching and retrieving philosophy papers, built for AI research assistants that need to ground themselves in the actual philosophical literature rather than the shallow, mis-classified philosophy slice of general academic databases. It is exposed today as an MCP server; a CLI and other frontends can sit on the same interface-agnostic core.
It combines four open sources, each doing what it does best:
| Source | Role |
|---|---|
| Semantic Scholar | Search, metadata, citations, references, SPECTER-based related papers (the backbone) |
| OpenAlex | Open-access discovery — agent-fetchable PDFs, ~11.5M OA philosophy works |
| Unpaywall | DOI → best open-access PDF location |
| CrossRef | Authoritative DOI metadata fallback (get_paper for DOIs Semantic Scholar lacks) |
| PhilArchive | Philosophy-specific open-access cache (metadata + best-effort PDF links) |
| PhilPapers taxonomy | Browse 6,134 expert-curated philosophy categories (cached snapshot) |
Runs fully keyless. An optional Semantic Scholar API key raises rate limits; optional contact emails opt into the OpenAlex/Unpaywall "polite pool." No source requires registration.
Why four sources? Philosophy is under-served by general infrastructure: low open-access (~15%) and DOI-assignment (~60%) rates, canonical works predating DOIs, and systematic mis-classification (Rawls's A Theory of Justice tagged "Sociology" in Semantic Scholar; Heidegger's Being and Time with a null field). And as of 2026, the PhilPapers/PhilArchive web APIs sit behind Cloudflare bot-protection. OpenAlex + Unpaywall therefore supply the open-access PDFs an automated client can actually fetch, while a cached PhilArchive harvest adds philosophy-specific coverage.
Install
npm install
npm run build
npm run smoke # optional: MCP stdio smoke test
Requires Node.js ≥ 22.
Configure
All configuration is optional — copy .env.example to .env and fill in what you want:
# Optional: raises Semantic Scholar rate limits (request at
# https://www.semanticscholar.org/product/api). Without it, S2 still works but
# rate-limits aggressively (HTTP 429) on its shared unauthenticated pool.
SEMANTIC_SCHOLAR_API_KEY=
# Optional: OpenAlex/Unpaywall "polite pool" contact (a courtesy id, not a key).
# OPENALEX_EMAIL=you@example.com
# UNPAYWALL_EMAIL=you@example.com
Advanced overrides (SOPHOTRON_OAI_ENDPOINT, SOPHOTRON_DATA_DIR, SOPHOTRON_LIBRARY_PATH) are documented in .env.example.
Use with an MCP client
Claude Code / any stdio MCP client (~/.claude/settings.json):
{
"mcpServers": {
"sophotron": {
"command": "node",
"args": ["/absolute/path/to/sophotron/dist/index.js"],
"env": { "SEMANTIC_SCHOLAR_API_KEY": "optional" }
}
}
}
Claude Desktop / Cowork (MCPB bundle): a manifest.json is included. Pack it with the MCPB CLI and install the resulting .mcpb:
npx @anthropic-ai/mcpb pack
Tools
| Tool | Description |
|---|---|
search_papers |
Search via Semantic Scholar (auto-falls back to OpenAlex when S2 is rate-limited); PhilArchive PDF enrichment. Optional category_id reranks results relative to an inferred taxonomy region |
search_openalex |
Search via OpenAlex with open-access PDF discovery (philosophy_only, open_access_only filters) |
get_paper |
Paper details by S2 ID, DOI, arXiv ID, or PhilArchive code |
get_citations |
Papers citing a paper |
get_references |
A paper's bibliography |
get_related |
SPECTER-based related papers. Optional category_id reranks results relative to an inferred taxonomy region |
get_pdf |
Resolve an open-access PDF via the fallback chain (below) |
search_philarchive |
Search the local PhilArchive open-access cache |
harvest_philarchive |
Incrementally harvest the PhilPapers/PhilArchive OAI-PMH feed into the cache |
get_cache_stats |
PhilArchive cache + cross-reference statistics |
browse_taxonomy |
Browse the expert-curated PhilPapers category taxonomy (6,134 categories) |
category_papers |
Papers near an inferred taxonomy-category region, ranked by influence — a semantic lens over an inferred mapping, not an authoritative index |
download_paper |
Resolve an open-access PDF, extract its text, and store it as markdown (arxiv-mcp-server-compatible path) |
read_paper |
Read back the stored text of a downloaded paper, paginated |
library_add / library_remove / library_list |
A personal paper library (JSON-on-disk) with tags and notes |
recommend |
"More like these," seeded by your library, via Semantic Scholar's hosted Recommendations API (SPECTER2) |
Taxonomy navigation (the discourse-cartographer layer)
The PhilPapers taxonomy is more than a list to browse: each category is treated as an inferred
SPECTER2 region (a coordinate in embedding space, seeded from the category name), so you can
navigate papers relative to a category. Pass a category_id (the id browse_taxonomy returns)
to search_papers or get_related to rerank the results by proximity to that region, or call
category_papers for influence-ranked papers near it.
This is a semantic lens over an inferred mapping, not a classification claim — results are
tagged with relative proximity (nearer / farther / unplaceable), placement: "inferred", and an
honest confidence tier (distinct for semantically-clear coarse categories, low for fine,
catch-all, or thinly-seeded ones). Transient Semantic Scholar outages are reported as
unavailable, never as a confident empty region.
PDF resolution (get_pdf)
Tries sources in order of reliability and stops at the first hit, reporting where the PDF came from and whether an automated client can fetch it:
- Semantic Scholar
openAccessPdf→agentFetchable: true - Unpaywall by DOI →
agentFetchable: true - OpenAlex by DOI (or title search) →
agentFetchable: true - PhilArchive best-effort URL →
agentFetchable: false(philarchive.org is Cloudflare-walled to automated clients; open these in a browser)
// get_pdf { "paper_id": "10.1007/s11019-014-9560-2" }
{ "pdfUrl": "https://…/paper.pdf", "source": "unpaywall", "agentFetchable": true, "oaStatus": "green", … }
Cross-referencing (PhilArchive ↔ Semantic Scholar)
PhilArchive's OAI-PMH metadata omits DOIs, so papers are linked by fuzzy title + author matching (title 50% / author 35% / year 15%; accept > 0.85). Match results carry a confidence score so uncertain links can be reviewed.
Rate limits & access reality
| Source | Limit | Handling |
|---|---|---|
| Semantic Scholar | 429s even at slow pace without a key — the unauthenticated pool is globally shared (empirically 7/8 requests 429'd at 5s spacing) | bounded retry/backoff (src/utils/http.ts) + automatic OpenAlex fallback in search_papers; a key improves S2-native ranking/citations |
| OpenAlex / Unpaywall | generous, no key | polite-pool email recommended |
PhilArchive OAI (philpapers.org/oai.pl) |
2 req/sec | built-in 500ms throttle |
philarchive.org (PDFs, web) |
Cloudflare 403 to agents | PDF URLs returned as best-effort, browser-only |
Project structure
src/
├── index.ts # MCP server frontend (18 tools)
├── types.ts # shared types
├── adapters/ # one module per external API; never throw to callers
│ ├── semantic-scholar.ts # S2 Graph/Recommendations API (+ SPECTER2 embeddings)
│ ├── openalex.ts # OpenAlex works + OA discovery
│ ├── unpaywall.ts # DOI → OA PDF
│ ├── crossref-api.ts # api.crossref.org DOI metadata fallback
│ ├── philarchive.ts # PhilArchive/PhilPapers OAI-PMH + cache
│ └── taxonomy.ts # PhilPapers category hierarchy (cached)
├── services/ # cross-source logic
│ ├── crossref.ts # S2 ↔ PhilArchive fuzzy cross-reference
│ ├── pdf-resolver.ts # S2 → Unpaywall → OpenAlex → PhilArchive chain
│ ├── paper-download.ts # download_paper / read_paper full-text store
│ ├── library.ts # personal library (JSON-on-disk)
│ └── taxonomy-bridge.ts # taxonomy→papers semantic bridge (inferred centroids)
└── utils/
├── fuzzy-match.ts # title/author matching
├── vector.ts # cosine / centroid / proximity ranking
├── rate-limit.ts # serial rate limiter (S2 1 req/s)
└── http.ts # shared retry/backoff fetch
data/ # philarchive-cache.json, crossref-cache.json, category-centroids.json (regenerable)
scripts/smoke-test.mjs # MCP stdio smoke test (also runs in CI)
Develop
npm run build # tsc (tsconfig.build.json — excludes tests/experiments)
npm run typecheck # tsc --noEmit (full, incl. tests)
npm test # vitest (set SKIP_INTEGRATION=true to skip live tests)
npm run smoke # MCP stdio smoke test
Start with CONTRIBUTING.md; the operational guide (architecture, conventions, correctness contracts) is CLAUDE.md. Tests are the verification spine — every adapter has unit tests with mocked fetch, plus a network-gated integration suite.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。