
Openevidence Mcp
io.github.bakhtiersizhaev由 GitHub 帳號 bakhtiersizhaev 發布v0.2.2更新於 Oct 25, 2026
Unofficial MCP server connecting OpenEvidence to AI agents via authenticated browser sessions
概覽
非官方本機 MCP 伺服器,讓助理透過你自己已登入的 OpenEvidence 瀏覽器工作階段提出研究問題並讀取文章歷史。
- 可以做什麼
- 檢查已儲存的 OpenEvidence 瀏覽器工作階段是否已通過驗證、是否可用。列出你先前的 OpenEvidence 問題與文章,支援分頁與搜尋。依 ID 取得單篇文章,回傳狀態、問題、回答文字等正規化欄位。提出新的 OpenEvidence 研究問題,可選擇等待文章完成。輪詢既有文章直到完成,適合在非阻塞提問之後使用。
- 適用情境
- 適合已擁有 OpenEvidence 帳號的臨床醫師、醫學研究者與 AI 操作者,希望讓助理在本機代理工作流程中執行證據研究提問並調閱歷史文章。適用於 Codex、Claude Code、Claude Desktop、Cursor 等本機用戶端,而非託管或網頁環境。
- 執行需求
- 以 stdio 程序從 npm 套件在本機執行,需要 Node.js 20+、npm 10+、透過 Playwright 安裝的 Chromium 瀏覽器,以及支援的作業系統(macOS、Windows 或 Linux)。需要你自己的 OpenEvidence 帳號,並完成一次互動式登入以儲存本機瀏覽器設定檔。未宣告 API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Openevidence Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
OpenEvidence MCP (Unofficial)
No API key is required. Authenticate once with npm run login:session; the server reuses your local browser profile. Registry metadata version 0.2.2 continues to use the existing npm package 0.2.1.
OpenEvidence MCP is an unofficial Model Context Protocol server that connects OpenEvidence to Codex, Claude Code, Claude Desktop, Cursor, Cline, Continue, and other MCP-compatible clients through your own authenticated browser session.
[License: Apache-2.0] [Node.js 20+] [TypeScript] [MCP SDK] [Playwright]
[!IMPORTANT] This project is unofficial and is not affiliated with OpenEvidence. It does not provide medical advice, does not bypass access controls, and should only be used with your own OpenEvidence account in compliance with applicable terms, privacy rules, and clinical governance requirements.
Translations: Русский | Español | 简体中文 | 繁體中文(台灣) | 한국어 | हिन्दी
Agent Onboarding & Installation
Using Codex, Claude Code, Cursor, or another local AI coding agent? You can let the agent handle the entire setup, compilation, and local MCP configuration for you!
Copy and paste this short bootstrap prompt directly into your local AI coding assistant:
For the comprehensive, step-by-step setup playbook and rules, see docs/AGENT_INSTALL_PROMPT.md.
What it does
OpenEvidence MCP runs a local stdio MCP server that lets MCP clients use your existing OpenEvidence browser session for:
- checking whether the saved session is authenticated;
- listing your OpenEvidence question/article history;
- fetching a full article payload by ID;
- asking an OpenEvidence research question and optionally waiting for completion;
- polling an existing OpenEvidence article until it completes.
No official OpenEvidence API token is required.
What it does NOT do
- It is not affiliated with, endorsed by, or approved by OpenEvidence.
- It does not provide medical advice or replace clinical judgment.
- It does not bypass authentication, paywalls, or access controls.
- It does not collect credentials.
- It does not send your browser session state anywhere except to OpenEvidence through local requests from your machine.
- It should not be used for patient-specific diagnosis or treatment decisions without appropriate human review.
Who it is for
- clinicians using their own OpenEvidence account;
- medical researchers;
- AI operators building evidence-research workflows;
- MCP developers integrating local tools with Codex, Claude, Cursor, Cline, Continue, or similar clients.
Tested / Target Clients
This project is designed for MCP-compatible clients and local agent workflows. Only Codex and Claude-style local configuration examples are maintained in this repository unless otherwise noted.
Other MCP-compatible hosts may work as well, but the examples in this repository focus on Codex and Claude-style local MCP configuration.
Features
Agent Tool-Calling Notes
The MCP server includes built-in instructions and a prompt named openevidence_research_workflow for clients that expose MCP prompts.
Recommended agent workflow:
- Call
oe_auth_statuswhen auth state is unknown. - Use
oe_history_listonly when the user wants prior OpenEvidence work or an article ID. - Use
oe_article_getwhen you already have an article ID. - For long research questions, call
oe_askwithwait_for_completion=false, then calloe_article_waitwith the returnedarticle_id. - Use
original_article_idonly for true follow-up continuity. Omit it for fresh questions to avoid stale thread context. - Treat outputs as evidence-research context, not medical advice, diagnosis, or clinical orders.
Related commands:
Requirements
- Node.js 20+
- npm 10+
- OpenEvidence account
- macOS, Windows, or Linux
- Chromium installed by Playwright (
npx playwright install chromium)
Availability Note
OpenEvidence availability may depend on region, account eligibility, and OpenEvidence policy. Public materials in May 2026 indicate verified U.S. HCP/NPI-centered access and EU/U.K. unavailability; this project does not bypass those restrictions.
Useful references:
Quick Start
macOS
Ubuntu/Linux
Windows PowerShell
Login Flow
Recommended one-time login:
The command opens Chrome or Edge with a local OpenEvidence MCP browser profile. Sign in to OpenEvidence with your own account, confirm the normal OpenEvidence page loads, close that browser window, return to the terminal, and press Enter.
Default local profile path:
- macOS/Linux:
~/.openevidence-mcp/browser-profile - Windows:
%USERPROFILE%\.openevidence-mcp\browser-profile
The MCP server reuses this same local profile during its process lifetime. It may start a minimized local browser process for OpenEvidence calls, but it does not install an extension, expose a public network service, export cookies, or ask for your password.
Legacy/development flow:
If Google sign-in says the browser or app may not be secure during the legacy flow, use the session login instead:
Do not share browser profile files, storage-state files, cookies, screenshots with private account data, or patient-identifiable information.
MCP Client Setup
Build before registering the server:
Automatic Setup (Recommended)
You can automatically register the OpenEvidence MCP server with your favorite client using the built-in installer:
- Claude Desktop (
claude-app): - Codex Desktop (
codex-app): - Claude Code (
claude-code): - Codex CLI (
codex-cli): - Google Antigravity (
antigravity): - Cursor (
cursor): - Windsurf (
windsurf):
To uninstall, you can run:
Manual Setup
Codex
Add this to ~/.codex/config.toml:
Windows example:
Claude Desktop
Add this to claude_desktop_config.json:
Cursor, Cline, Continue
Use the same stdio server shape if your client supports MCP server command/args configuration:
Example configs are in examples/.
Verify
Expected result with a valid session:
ok: trueauthenticated: true- a redacted history preview
If smoke fails with an auth error, run npm run login:session again. Smoke requires a real OpenEvidence account session and will not pass in a clean CI environment unless a local session profile is available.
By default, smoke output redacts account and history content. Use npm run smoke -- --verbose only in a private terminal if raw account/history payloads are needed for debugging.
Developer checks:
Security Notes
- Treat browser profiles,
storage-state.json, and cookies as secrets. - Do not commit
.env, session state, screenshots with account data, or patient-identifiable information. - Use only your own OpenEvidence account.
- Keep MCP client configs pointed at the built local server path you control.
- Review tool calls from autonomous agents before using outputs in clinical or operational workflows.
- See
SECURITY.mdfor vulnerability reporting and supported scope.
Troubleshooting
See docs/TROUBLESHOOTING.md for detailed recovery steps.
Common fixes:
authenticated: false: rerunnpm run login:session.- Google says browser is not secure in the legacy login flow: run
npm run login:session. - Browser install errors: run
npx playwright install chromium. - MCP client cannot start server: confirm
npm run buildsucceeded and use an absolute path todist/server.js. - Windows path issues: escape backslashes in JSON/TOML or use full absolute paths.
- Node errors: confirm
node --versionis 20 or newer. - OpenEvidence UI/API changed: open an issue with sanitized logs and no private account or patient data.
oe_askcannot find the question input or submit button: OpenEvidence UI may have changed; open an issue with sanitized logs and no private account or patient data.
Roadmap
- Keep tool descriptions compact and agent-friendly.
- Add focused tests around config and response parsing.
- Improve smoke diagnostics without exposing session details.
- Track MCP client setup examples as client configuration formats evolve.
License & Attribution
Apache-2.0 (LICENSE) + NOTICE.
If you redistribute, fork, or build derivative versions, keep attribution to:
- Original author: Bakhtier Sizhaev
- Original repository:
https://github.com/bakhtiersizhaev/openevidence-mcp
Suggested attribution line:
Star History
[Star History Chart]來源:README.md,提交 ea76552
工具
0版本歷史
2- v0.2.2最新Sep 25, 2026
- v0.2.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分