Skip to main content

A package for RDKit integration with MCP

Project description

MCP RDKit Project

Overview

The mcp_rdkit project integrates the RDKit library with the MCP (Model Context Protocol) framework to provide advanced chemical informatics tools. It includes functionalities for molecular visualization, descriptor calculation, and interaction with an MCP server.

Features

  • Molecular Visualization: Generate images of molecules using RDKit.
  • Descriptor Calculation: Compute molecular descriptors such as molecular weight, logP, and more.
  • MCP Server Integration: Communicate with an MCP server for advanced chemical informatics tasks.

Project Structure

  • mcp_rdkit/

    • __main__.py: Entry point for the application. It initializes the MCP server and runs it in "stdio" mode.
    • rdkit_helper.py: Contains helper functions for RDKit operations, including:
      • Converting PIL images to base64.
      • Interfacing with the MCP server.
      • Utilizing RDKit for chemical computations.
  • setup.py: Configuration for packaging and distribution.

Requirements

  • Python 3.8 or higher
  • RDKit library
  • MCP framework

Installation

  1. Install the package using pip:

    pip install mcp-rdkit
    
  2. Run the application:

    python -m mcp_rdkit
    

Demo

You can integrate this directly into Claude App:

Demo 1 Demo 2 Demo 3

Usage

  • Run the MCP server: The application starts an MCP server that can process chemical informatics tasks.

  • Generate molecular images: Use the RDKit helper functions to visualize molecules.

  • Calculate descriptors: Leverage RDKit's descriptor calculation tools for chemical analysis.

MCP Configuration Example

To use the RDKit server with MCP, add the following configuration to your mcp config file:

"rdkit-server": {
  "type": "stdio",
  "command": "python",
  "args": [
    "-m",
    "mcp_rdkit"
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_rdkit-0.1.7.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file mcp_rdkit-0.1.7.tar.gz.

File metadata

  • Download URL: mcp_rdkit-0.1.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for mcp_rdkit-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f6a723723a2cf8fda67127f46a08e3d6307d1706b40dc7a2c1bf74e7ddcac2a1
MD5 b614821febb7fa3cf4c6cff5b0d60868
BLAKE2b-256 ade9cafbcb3cfc05ac88328834da994089bdbf2f58822837997ea0f43cb25050

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page