Skip to main content
Glama

Chemist Model Context Protocol (MCP) Server

TypeScript MCP License: MIT

A Model Context Protocol (MCP) server providing deep LLM-agent tool, resource, and prompt integrations with Chemist — an open-source computational research platform and quantitative analytical laboratory for comparative chemistry, molecular structures, and functional group manifolds.


Overview

The chemist-mcp server enables AI agents (Claude Code, Cursor, Gemini CLI, Antigravity) to query, manipulate, cluster, and synthesize chemistry domain models directly over standard input/output (stdio):

  • 51 Registered MCP Tools across 8 functional modules (Search, Chemical Classes, Molecules, Functional Groups, Clustering, Synthesis Reports, Background Jobs, and System Diagnostics).

  • 4 Registered MCP Resources exposing read-only live platform status, catalogs, cluster snapshots, and markdown monographs.

  • 2 MCP Prompt Templates for comparative chemistry studies and cluster synthesis monographs.

  • 1024-dimensional semantic manifold querying via PostgreSQL pgvector HNSW indexes.


Related MCP server: Mol-MCP

Architectural Mapping

Tier / Domain

Model

Table Name

MCP Module / Tools

Tier 1

Chemical Superfamilies

chemical_classes

list_chemical_classes, get_chemical_class, create_chemical_class, update_chemical_class, delete_chemical_class, upsert_chemical_classes_batch, populate_chemical_classes, populate_chemical_class_molecules

Tier 2

Molecules / Compounds

molecules

list_molecules, get_molecule, create_molecule, update_molecule, delete_molecule, upsert_molecules_batch, generate_molecule_embedding, populate_molecule_functional_groups, populate_molecules_bulk

Tier 3

Functional Groups / Reactive Motifs

functional_groups

list_functional_groups, get_functional_group, create_functional_group, update_functional_group, delete_functional_group, upsert_functional_groups_batch, generate_functional_group_embedding, populate_functional_groups_bulk

Clustering

15-Level Agglomerative

cluster_snapshots, cluster_groups

compute_clusters, create_cluster_snapshot, list_cluster_snapshots, get_cluster_snapshot, delete_cluster_snapshot, list_cluster_groups, get_cluster_group

Synthesis

Multi-Stage Map-Reduce

cluster_reports, cluster_report_summaries

list_cluster_reports, get_cluster_report, create_cluster_report, delete_cluster_report, generate_deep_synthesis, list_report_summaries, get_report_summary, list_report_sub_reports, get_report_sub_report

Global Search

Cross-Catalog pgvector

Multi-table

search, find_counterparts

Platform

Jobs & System Info

Multi-service

list_jobs, get_job_status, wait_for_job, get_platform_status, get_settings, update_context_window, trigger_bulk_embeddings, get_openapi_spec


Installation & Setup

Prerequisites

  • Node.js 20+

  • Running instance of Chemist (http://localhost:3000)

Build

git clone https://github.com/leouofa/chemist-mcp.git
cd chemist-mcp
npm install
npm run build

Configuration

Environment Variables

Configure via .env file or export in your shell:

# Base URL for the Chemist Rails API (v1)
CHEMIST_API_URL=http://localhost:3000/api/v1

# Optional API key if authentication is enabled
# CHEMIST_API_KEY=

# HTTP request timeout in milliseconds (default: 60000)
CHEMIST_TIMEOUT_MS=60000

CLI Arguments

chemist-mcp [options]

Options:
  -u, --url <url>        Chemist API base URL (default: http://localhost:3000/api/v1)
  -k, --api-key <key>    Optional API key / Bearer token
  -t, --timeout <ms>     Request timeout in milliseconds (default: 60000)
  -h, --help             Display help message

MCP Client Configuration

Claude Desktop / Antigravity / Cursor Configuration

Add to your client configuration (e.g. claude_desktop_config.json or MCP settings):

{
  "mcpServers": {
    "chemist": {
      "command": "node",
      "args": ["/path/to/chemist-mcp/dist/index.js"],
      "env": {
        "CHEMIST_API_URL": "http://localhost:3000/api/v1"
      }
    }
  }
}

MCP Tools Reference (51 Tools)

Search (2 tools)

  • search: Cross-catalog hybrid semantic (1024-d cosine similarity) and keyword search across molecules and functional groups.

  • find_counterparts: Find nearest bioisosteric analogs or reactive motifs using vector cosine distance.

Chemical Classes (8 tools)

  • list_chemical_classes: Query superfamilies with molecule counts and filters.

  • get_chemical_class: Detailed chemical class view with associated molecules.

  • create_chemical_class: Register a new chemical superfamily.

  • update_chemical_class: Update name or description.

  • delete_chemical_class: Remove chemical class and cascaded children.

  • upsert_chemical_classes_batch: Bulk insert/update chemical classes.

  • populate_chemical_classes: Trigger LLM discovery agent for superfamilies.

  • populate_chemical_class_molecules: Discover molecules for a specific chemical class.

Molecules (9 tools)

  • list_molecules: List molecules with filter by chemical class, themes, and embedding status.

  • get_molecule: Detailed molecule view with child functional groups and embeddings.

  • create_molecule: Register a new compound.

  • update_molecule: Update name, description, themes, or parent chemical class.

  • delete_molecule: Delete molecule and child functional groups.

  • upsert_molecules_batch: Bulk upsert molecules under a chemical class.

  • generate_molecule_embedding: Generate or refresh 1024-d vector embedding.

  • populate_molecule_functional_groups: Discover reactive motifs for a molecule.

  • populate_molecules_bulk: Bulk discover molecules across chemical classes.

Functional Groups (8 tools)

  • list_functional_groups: List reactive motifs with thematic filtering.

  • get_functional_group: Detailed functional group view.

  • create_functional_group: Register a new functional group under a molecule.

  • update_functional_group: Update name, description, or themes.

  • delete_functional_group: Remove functional group record.

  • upsert_functional_groups_batch: Bulk upsert functional groups for a molecule.

  • generate_functional_group_embedding: Generate or refresh 1024-d vector embedding.

  • populate_functional_groups_bulk: Bulk discover functional groups.

Clusters & Snapshots (7 tools)

  • compute_clusters: Preview live connected-components clusters across 15 levels.

  • create_cluster_snapshot: Freeze cluster configuration into database snapshot.

  • list_cluster_snapshots: List frozen snapshots.

  • get_cluster_snapshot: Retrieve snapshot with groups and member entities.

  • delete_cluster_snapshot: Delete cluster snapshot.

  • list_cluster_groups: List archetype groups for a snapshot.

  • get_cluster_group: Detailed cluster group inspection.

Synthesis Reports (9 tools)

  • list_cluster_reports: List multi-phase synthesis monographs.

  • get_cluster_report: Retrieve full markdown monograph and progress state.

  • create_cluster_report: Initiate 2-Phase Map-Reduce synthesis.

  • delete_cluster_report: Remove report and associated summaries.

  • generate_deep_synthesis: Initiate 3-Phase Hierarchical Deep Synthesis monograph.

  • list_report_summaries: List Phase 1 per-cluster analyses.

  • get_report_summary: Retrieve single cluster analysis.

  • list_report_sub_reports: List Phase 2 batch syntheses.

  • get_report_sub_report: Retrieve single batch synthesis.

Background Jobs (3 tools)

  • list_jobs: List recent background Sidekiq/ActiveJob tasks.

  • get_job_status: Poll job status and progress metadata.

  • wait_for_job: Wait synchronously for job completion with timeout.

Platform & Settings (5 tools)

  • get_platform_status: Health check, entity counts, active model parameters.

  • get_settings: Vector embedding metrics and LLM context window presets.

  • update_context_window: Update context token budget.

  • trigger_bulk_embeddings: Enqueue bulk embedding calculation.

  • get_openapi_spec: Retrieve complete raw OpenAPI specification.


MCP Resources Reference (4 Resources)

  • chemist://status: Real-time JSON health check, model configuration, and database item counters.

  • chemist://chemical-classes: JSON catalog of top registered chemical classes.

  • chemist://snapshots/{id}: Detailed JSON payload for a frozen cluster snapshot with member groups.

  • chemist://reports/{id}: Formatted Markdown synthesis monograph.


MCP Prompts Reference (2 Prompts)

  • comparative_chemical_analysis: Structured workflow comparing two molecules or functional groups through stereoelectronic, biosynthetic, and vector cosine distance lenses.

  • chemical_cluster_monograph: Guided investigation of an agglomerative cluster snapshot producing an executive monograph with citations to specific cluster groups.


License

MIT License. Copyright (c) 2026 Leonid Medovyy.

Available Tools

51 tools
compute_clustersB

Compute live connected-components vector clusters for Molecules or FunctionalGroups across chemical classes without modifying the database.

Inputs: force, level, target_type, full_coverage.

create_chemical_classC

Create a new chemical class record in the catalog.

Inputs: name (required), description.

create_cluster_reportC

Initiate a 2-Phase Map-Reduce synthesis report on a frozen cluster snapshot.

Inputs: prompt (required), cluster_snapshot_id (required).

create_cluster_snapshotB

Compute connected-components clustering and freeze it immediately into an immutable database snapshot.

Inputs: level (required), title (required), target_type (required), full_coverage.

create_functional_groupB

Create a new functional group or reactive motif under a molecule.

Inputs: name (required), molecule_id (required), themes, description.

create_moleculeC

Create a new molecule record in Chemist.

Inputs: name (required), chemical_class_id (required), themes, description.

delete_chemical_classA

Delete a chemical class and its cascaded molecules and functional groups.

Inputs: id (required).

delete_cluster_reportA

Delete a synthesis report along with its intermediate summaries and sub-reports.

Inputs: id (required).

delete_cluster_snapshotB

Delete a frozen cluster snapshot along with its cascaded cluster groups and synthesis reports.

Inputs: id (required).

delete_functional_groupC

Delete a functional group from the catalog.

Inputs: id (required).

delete_moleculeB

Delete a molecule and its cascaded functional groups.

Inputs: id (required).

find_counterpartsB

Find nearest chemical counterparts or bioisosteric analogs to a specified molecule or functional group using 1024-dimensional pgvector cosine distance.

Inputs: id (required), entity_type (required), limit, molecule_id, +2 more.

generate_deep_synthesisB

Initiate a 3-Phase Hierarchical Deep Synthesis monograph, reusing Phase 1 summaries from a completed parent report.

Inputs: report_id (required), batch_size.

generate_functional_group_embeddingB

Generate or regenerate a 1024-dimensional semantic embedding vector for a functional group.

Inputs: id (required), sync.

generate_molecule_embeddingB

Generate or regenerate a 1024-dimensional semantic embedding vector for a single molecule.

Inputs: id (required), sync.

get_chemical_classC

Retrieve details of a single chemical class including its molecules.

Inputs: id (required), include_molecules.

get_cluster_groupA

Retrieve details of a specific archetype cluster group with all member molecules or functional groups.

Inputs: id (required), include_members.

get_cluster_reportB

Retrieve complete scholarly chemistry report content, progress percentage, markdown monograph, and intermediate summaries.

Inputs: id (required), include_summaries, include_sub_reports.

get_cluster_snapshotB

Retrieve details of a frozen cluster snapshot including member groups and generated synthesis reports.

Inputs: id (required), include_groups, include_members, include_reports.

get_functional_groupB

Retrieve details of a single functional group including parent molecule and chemical class metadata.

Inputs: id (required), include_embedding.

get_job_statusB

Check the status, progress, and result of an ActiveJob/Sidekiq background task.

Inputs: job_id (required).

get_moleculeB

Retrieve details of a single molecule including its chemical class and child functional groups.

Inputs: id (required), include_embedding, include_functional_groups.

get_openapi_specA

Retrieve the raw OpenAPI 3.1 specification for the Chemist API.

Inputs: no named parameters.

get_platform_statusA

Get overall platform health, catalog entity counts, embedding coverage stats, and active LLM configuration.

Inputs: no named parameters.

get_report_sub_reportC

Retrieve a single Phase 2 batch analysis.

Inputs: id (required).

get_report_summaryC

Retrieve a single Phase 1 per-cluster scholarly summary.

Inputs: id (required).

get_settingsA

Get embedding completion metrics for Molecules and FunctionalGroups, active embedding/LLM parameters, and context window presets.

Inputs: no named parameters.

list_chemical_classesC

List chemical classes (superfamilies, biosynthetic families, compound classes) registered in Chemist with molecule counts.

Inputs: q, limit, offset, include_molecules.

list_cluster_groupsB

List all archetype cluster groups belonging to a specific frozen snapshot.

Inputs: cluster_snapshot_id (required), include_members.

list_cluster_reportsC

List generated multi-phase comparative chemistry and molecular manifold synthesis reports.

Inputs: limit, offset, status, is_detailed, +2 more.

list_cluster_snapshotsC

List frozen archetype cluster snapshots in Chemist.

Inputs: limit, offset, target_type, include_groups.

list_functional_groupsB

List functional groups and reactive motifs registered in Chemist with filtering by molecule, chemical class, themes, and embedding status.

Inputs: q, limit, theme, offset, +4 more.

list_jobsB

List recent asynchronous background jobs (embedding calculations, LLM discoveries, synthesis reports).

Inputs: limit.

list_moleculesC

List molecules registered in Chemist with filtering by chemical class, themes, embedding status, and search keywords.

Inputs: q, limit, theme, offset, +5 more.

list_report_sub_reportsB

List all Phase 2 intermediate batch analyses belonging to a detailed synthesis report.

Inputs: cluster_report_id (required).

list_report_summariesB

List all Phase 1 per-cluster analyses belonging to a synthesis report.

Inputs: cluster_report_id (required).

populate_chemical_classesB

Trigger LLM discovery to populate major chemical classes and superfamilies with biochemical descriptions.

Inputs: sync.

populate_chemical_class_moleculesB

Discover and populate molecules for a specific chemical class via LLM generation.

Inputs: id (required), sync.

populate_functional_groups_bulkB

Bulk trigger discovery of functional groups across all molecules under an optional molecule scope.

Inputs: sync, molecule_id.

populate_molecule_functional_groupsB

Discover and populate functional groups and reactive motifs for a molecule via LLM analysis.

Inputs: id (required), sync.

populate_molecules_bulkB

Bulk trigger discovery of molecules across one or all chemical classes via background job.

Inputs: sync, chemical_class_id.

trigger_bulk_embeddingsB

Enqueue bulk embedding generation for all Molecules or FunctionalGroups.

Inputs: model_type (required), only_missing.

update_chemical_classC

Update an existing chemical class's name or description.

Inputs: id (required), name, description.

update_context_windowC

Dynamically update the active LLM context window token size.

Inputs: context_window (required).

update_functional_groupC

Update an existing functional group's attributes.

Inputs: id (required), name, themes, description, +1 more.

update_moleculeC

Update an existing molecule's attributes (name, description, themes, or parent chemical class).

Inputs: id (required), name, themes, description, +1 more.

upsert_chemical_classes_batchB

Batch insert or update chemical classes matching case-insensitively on name.

Inputs: chemical_classes (required).

upsert_functional_groups_batchA

Batch insert or update functional groups for a specific molecule matching on lower(name).

Inputs: molecule_id (required), functional_groups (required).

upsert_molecules_batchA

Batch insert or update molecules under a specific chemical class matching on lower(name).

Inputs: molecules (required), chemical_class_id (required).

wait_for_jobA

Poll a background job until completion or failure with configurable timeout.

Inputs: job_id (required), timeout_ms, poll_interval_ms.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 51 tools

    Disambiguation3/5

    Most tools are tied to a distinct resource or action, but several families overlap: report summaries versus sub-reports versus cluster reports, and create_cluster_report versus generate_deep_synthesis are easy to confuse. Population and embedding tools also have similar names, though descriptions help clarify intent.

    Naming Consistency4/5

    The set overwhelmingly follows a snake_case verb_noun convention, such as list_molecules, get_cluster_snapshot, and delete_chemical_class. Minor deviations like the generic search and some noun-heavy batch/populate names keep it from being fully uniform.

    Tool Count2/5

    At 51 tools, the server is substantially heavier than the typical 3-15 range and exposes many CRUD, batch, populate, embedding, report, snapshot, and job operations. The broad chemistry-platform scope justifies some breadth, but the count is still excessive for a single MCP surface.

    Completeness4/5

    The core catalog lifecycle is well covered with CRUD for chemical classes, molecules, and functional groups, plus batch upserts, population, embedding, clustering, snapshots, reports, jobs, and settings. Minor gaps remain around job cancellation, report updating/regeneration, and non-context-window settings changes.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for chemistry-focused tools, enabling LLM agents to perform molecule parsing, format conversion, property lookup, and other chemistry operations with explainable responses.
      Apache 2.0
    • F
      license
      B
      quality
      D
      maintenance
      Provides computational chemistry tools for LLMs, enabling molecular operations like SMILES processing and geometry manipulation via a modular agent and tool system.
      9
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables chemical reaction predictions (retrosynthesis, product, reagents), molecule validation, and property calculation through the Model Context Protocol, integrating with AI assistants.
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides in-process RDKit cheminformatics operations — descriptors, fingerprints, similarity and substructure search, reaction enumeration, standardization, and 3D conformer generation — for AI agents.
      -