Sandbox
@tandemai-inc/rdkit-mcp-server

MCP server for RDKit tool access

This package turns RDKit into an MCP service that language models can call. It wires RDKit functions into the Model Context Protocol, so a compatible agent can handle chemistry tasks through natural language instead of custom code. It also includes a small OpenAI-based CLI client and an evaluation suite.

42 stars6 forksPythonUpdated 4mo ago
Who it's for

Builders who want their agent to use RDKit for chemistry and cheminformatics tasks.

What it delivers

You can ask an MCP-capable agent to run RDKit operations without writing integration code.

What it does

RDKit tool exposure

Exposes RDKit functions through MCP so models can call chemistry tools directly.

MCP compatibility

Works with any LLM or agent that supports the Model Context Protocol.

CLI client

Includes `run_client.py` for quick experiments with an OpenAI-backed client.

Tool listing

`list_tools.py` prints the available RDKit tools exposed by the server.

Evaluation suite

`evals/` provides datasets and runners for checking tool output and agent responses.

How to get it

  1. 1Install the package
    pip install .
  2. 2Run
    python run_server.py [--settings settings.yaml]
  3. 3A CLI client is included for rapid prototyping with OpenAI
    export OPENAI_API_KEY="sk-proj-xxx"
    python run_client.py
  4. 4Run
    pip install ".[evals]"

README

RDKit MCP Server: Agentic Access to RDKit for LLMs

RDKit MCP Server is an open-source MCP server that enables language models to interact with RDKit through natural language. The goal is to provide agent-level access to every function in RDKit 2025.3.1 without writing any code.

Features

  • Seamless Integration: Exposes RDKit functions via the Model Context Protocol (MCP).
  • Language Model Support: Connect any LLM that supports the MCP protocol.
  • CLI Client: Includes a command-line client powered by OpenAI for quick experimentation.

Table of Contents

Installation

Install the package:

pip install .

Usage

Start the Server

python run_server.py [--settings settings.yaml]

See settings.example.yaml for setting options

Once the server is running, any MCP-compliant LLM can connect. For example, see the Claude Desktop quickstart.

CLI Client

A CLI client is included for rapid prototyping with OpenAI:

export OPENAI_API_KEY="sk-proj-xxx"
python run_client.py

Available Tools

List all available RDKit tools exposed by the server:

python list_tools.py [--settings settings.yaml]

Evaluations

The evals directory contains a test suite for evaluating RDKit MCP tool outputs and agent responses using pydantic-evals.

Install Dependencies

pip install ".[evals]"

Start the MCP Server

In one terminal, start the server:

python run_server.py

Run Evaluations

In another terminal, run the evaluation suite:

python evals/run_evals.py

Options:

  • --verbose - Show detailed output including inputs and outputs
  • --filter <name> - Run only cases matching the name
  • --output-json results.json - Export results to JSON

Each test uses LLM-based evaluation (LLMJudge) to assess whether the agent correctly used the RDKit tools and produced accurate results.

Contributing

We welcome contributions, feature requests, and bug reports:

See CONTRIB.md for guidelines on how to get started.

Together, we can make RDKit accessible to a wider range of applications through natural language interfaces.

Files in the repo

Repository payload16 top-level entries
  • .github
  • evals
  • rdkit_mcp
  • rdkit_mcp_clients
  • tests
  • .bumpversion.cfg
  • .gitignore
  • CONTRIB.md
  • Dockerfile
  • LICENSE
  • list_tools.py
  • pyproject.toml
  • README.md
  • run_client.py
  • run_server.py
  • settings.example.yaml

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

86k

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k