
DECIMER MCP Server
io.github.DocMinus由 GitHub 帳號 DocMinus 發布v0.1.4更新於 Oct 24, 2026
MCP server for DECIMER image-to-SMILES chemical structure recognition
概覽
讓助理透過 DECIMER 辨識 API 把化學結構影像轉換成 SMILES 字串。
- 可以做什麼
- 這個本機 MCP 伺服器把 DECIMER 的影像轉 SMILES 化學結構辨識功能包裝成工具呼叫。它提供 server_health,用來檢查 DECIMER FastAPI 伺服器是否可連線;以及 analyze_chemical_image,把 base64 編碼的影像送到 image2smiles 端點,並回傳結構化結果,包括 SMILES 字串、API 狀態,以及分類器分數與判定。它只是薄薄的轉接層,本身不執行 DECIMER 模型。
- 適用情境
- 當助理需要從影像讀取化學結構圖並取得機器可讀的 SMILES 時使用,例如化學或化學資訊學工作流程。只有在你已經執行或能夠執行它所呼叫的獨立 DECIMER API 伺服器時才有用。
- 執行需求
- 需要 Python 3.10+ 以及正在執行的 DECIMER API 伺服器,預設位址為 uv/uvx 以 stdio 方式安裝與執行。選用環境變數:DECIMER_API_BASE_URL、DECIMER_API_TIMEOUT_SECONDS、DECIMER_MAX_IMAGE_BYTES、DECIMER_MCP_LOG_LEVEL。未宣告需要驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 DECIMER MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
DecimerMCPServer
mcp-name: io.github.DocMinus/decimer-mcp-server
MCP server that exposes DECIMER image-to-SMILES functionality as tool calls.
This project is a thin adapter over the existing FastAPI service in DecimerServerAPI.
It does not run DECIMER models directly.
The adapter sends JSON requests by default, with automatic fallback to form payloads for compatibility.
Tools
server_health: Checks whether the DECIMER FastAPI server is reachable.analyze_chemical_image: Sends a base64-encoded image to/image2smiles/and returns structured output.
Requirements
- Python 3.10+
- Running DECIMER API server (default:
http://localhost:8099)
find it at either of these two versions:
- GitHub: https://github.com/DocMinus/DecimerServerAPI
- Dockerhub: https://hub.docker.com/r/docminus/decimer_api
Install
Configuration
Copy .env.example values into your environment:
DECIMER_API_BASE_URL(defaulthttp://localhost:8099)DECIMER_API_TIMEOUT_SECONDS(default60)DECIMER_MAX_IMAGE_BYTES(default10000000)DECIMER_MCP_LOG_LEVEL(defaultINFO)
Run (stdio transport)
or
Example MCP client config
Output shape
analyze_chemical_image returns:
When no SMILES is returned by API classifier behavior:
Development tests
Make targets:
Smoke test helper
Run one health check + one inference call against your DECIMER API:
If you keep settings in .env, load it with:
or use make:
Override the image path if needed:
Monitor Actions tab. If publish fails, rerun using workflow dispatch after fixing issues.
來源:README.md,提交 375df14
工具
0版本歷史
1- v0.1.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分