DECIMER APIを使用して、化学構造の画像をSMILES文字列に変換します。
別名 DocMinus/DecimerMCPServer, decimermcpserver, decimer-mcp-server
- スター
- 0
- ツール
- 2
- ダウンロード数(30日間)
- 163
- 最新バージョン
- 0.1.4
- 最終コミット
- 2026年10月22日
- ライセンス
- MIT
DECIMER MCPとは
DECIMERはMCPサーバーです。 DECIMER APIを使用して、化学構造の画像をSMILES文字列に変換します。. 2個のツールを提供しており、server_health, analyze_chemical_imageなどがあります。
プロジェクトのREADMEから生成された概要
DECIMER MCP server について
化学構造の画像をSMILES文字列に変換することが、このツールの主な機能です。DECIMER FastAPIサービス用の軽量なアダプターとして機能し、AIクライアントが標準的なツール呼び出しを通じて化学画像認識機能を利用できるようにします。このサーバーを使用するには、DECIMER APIサーバー(デフォルトではlocalhostのポート8099)が稼働している必要があります。
開発者は analyze_chemical_image ツールを使用して、base64エンコードされた画像を送信し、処理を管理できます。また、リモートのFastAPIサービスに接続可能であることを確認するための server_health ツールも含まれています。設定は環境変数で行い、APIのベースURL、リクエストのタイムアウト、画像の最大バイトサイズなどの設定が可能です。この構成は、Python 3.10以上を使用したstdioトランスポートによるローカル統合向けに設計されています。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
DECIMER MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにDECIMER MCPをインストール
$ claude mcp add decimermcpserver -- uvx decimer-mcp-serverCursorにDECIMER MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"decimermcpserver": {
"command": "uvx",
"args": [
"decimer-mcp-server"
]
}
}
}VS CodeにDECIMER MCPをインストール
.vscode/mcp.json
{
"servers": {
"decimermcpserver": {
"type": "stdio",
"command": "uvx",
"args": [
"decimer-mcp-server"
]
}
}
}VS Code CLIにDECIMER MCPをインストール
$ code --add-mcp '{"name":"decimermcpserver","type":"stdio","command":"uvx","args":["decimer-mcp-server"]}'Claude DesktopにDECIMER MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"decimermcpserver": {
"command": "uvx",
"args": [
"decimer-mcp-server"
]
}
}
}CodexにDECIMER MCPをインストール
$ codex mcp add decimermcpserver -- uvx decimer-mcp-serverCodex config.tomlにDECIMER MCPをインストール
~/.codex/config.toml
[mcp_servers.decimermcpserver] command = "uvx" args = ["decimer-mcp-server"]
Gemini CLIにDECIMER MCPをインストール
$ gemini mcp add -s user decimermcpserver uvx -- decimer-mcp-serverGemini settings.jsonにDECIMER MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"decimermcpserver": {
"command": "uvx",
"args": [
"decimer-mcp-server"
]
}
}
}DECIMER MCPツール 2
READMEから検出server_healthanalyze_chemical_image
| server_health | — | |
| analyze_chemical_image | — |
設定
DECIMER_API_BASE_URL
| 名前 | 説明 | 種類 |
|---|---|---|
| DECIMER_API_BASE_URL | — |
自動チェック
実行日 2026年11月12日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能合格
- オープンソースライセンス (OSI)合格
- 過去1年以内にコミットまたはリリースあり合格
- パッケージ名が有名なパッケージに酷似していない合格
- リモートエンドポイントがHTTPSを使用未チェック
- 破壊的なツールがラベル付けされている合格
- モデルへの隠れた指示がない合格
- パッケージおよびその依存関係に重大な勧告なし合格
README
GitHubで見る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
cd /Users/a/dev/DecimerMCPServer
uv venv
uv sync
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)
uv run decimer-mcp-server
or
uv run python -m decimer_mcp_server
Example MCP client config
{
"mcpServers": {
"decimer": {
"command": "uv",
"args": ["run", "python", "-m", "decimer_mcp_server"],
"env": {
"DECIMER_API_BASE_URL": "http://localhost:8099"
}
}
}
}
Output shape
analyze_chemical_image returns:
{
"ok": true,
"smiles": "CCO",
"reason": null,
"api_status_code": 200,
"api_message": null,
"classifier_score": 0.0000012,
"classifier_threshold": 0.3,
"classifier_decision": "structure_like"
}
When no SMILES is returned by API classifier behavior:
{
"ok": true,
"smiles": null,
"reason": "not_chemical_structure",
"api_status_code": 200,
"api_message": "No SMILES returned by API",
"classifier_score": 0.99999,
"classifier_threshold": 0.3,
"classifier_decision": "not_structure_like"
}
Development tests
uv sync --extra dev
uv run pytest
Make targets:
make sync
make test
Smoke test helper
Run one health check + one inference call against your DECIMER API:
cd /Users/a/dev/DecimerMCPServer
DECIMER_API_BASE_URL=http://chitchat:8099 uv run decimer-mcp-smoke-test --image /Users/a/dev/DecimerServerAPI/example_usage/structure.png
If you keep settings in .env, load it with:
uv run --env-file .env decimer-mcp-smoke-test --image /Users/a/dev/DecimerServerAPI/example_usage/structure.png
or use make:
make smoke
Override the image path if needed:
make smoke SMOKE_IMAGE=/absolute/path/to/image.png
## MCP Registry publishing
Tags matching `v*` trigger `.github/workflows/publish-mcp.yml`.
Workflow steps:
- installs `mcp-publisher`
- validates `server.json`
- calls registry publish using secret `MCP_REGISTRY_TOKEN`
- publishes slug `io.github.DocMinus/decimer-mcp-server` (case sensitive; must match registry grant)
Before tagging:
1. Update `pyproject.toml` + `server.json` versions
2. Ensure `server.json` stays valid (`uv pip install jsonschema && python validate snippet from AGENTS.md`)
3. Add GitHub repo secret `MCP_REGISTRY_TOKEN` (GitHub PAT with `repo`, `workflow` scopes)
Release flow:
```bash
git tag v0.1.1
git push origin v0.1.1
Monitor Actions tab. If publish fails, rerun using workflow dispatch after fixing issues.
## Contribution
This project was built by DocMinus with AI-assisted coding support (OpenCode/Copilot-style tooling), then reviewed and tested by the author.
## AI usage policy
- AI assistance was used for scaffolding, implementation drafts, and documentation edits.
- Final technical decisions, validation runs, and acceptance were performed by the maintainer.
- Runtime behavior should be validated with local tests (`make test`) and smoke tests (`make smoke`) before release.
DECIMER MCPのよくある質問
DECIMER MCPをClaude Codeに追加するには
ターミナルでclaude mcp add decimermcpserver -- uvx decimer-mcp-serverを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
DECIMER MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
DECIMER MCPが提供するツールは
2個のツールを提供しており、server_health, analyze_chemical_imageなどがあります。
このサーバーでDECIMERモデルを直接実行しますか?
いいえ、このサーバーは既存のFastAPIサービスに対する軽量なアダプターとして機能し、モデル自体は実行しません。
このサーバーを実行するための要件は何ですか?
Python 3.10以上と、稼働中のDECIMER APIサーバーが必要です。