
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 分