MSDS-Chain
Supports containerized deployment of the MCP server for cloud-hosted or shared team access, enabling remote chemical safety verification through HTTP/SSE transport.
Provides transport classification data including IATA packing instructions for shipping chemicals internationally, supporting compliance with air transport regulations.
Required for production deployment of OAuth 2.1 integration with Claude Marketplace, enabling secure authentication and session management.
MSDS Chain MCP Server
Chemical safety intelligence for AI-assisted experiment design.
Powered by ChainSDS — a verified, always-current chemical safety database. Verified. Current. Growing.
An MCP server that gives AI agents (Claude Code, Cursor, Copilot, etc.) access to chemical safety reasoning — compatibility checks, hazard analysis, regulatory compliance, PPE recommendations, storage guidance, and more.
Built for researchers who design experiments with AI and need safety verification integrated into their workflow.
Why This Exists
When you use Claude to plan a synthesis route or set up an Opentrons protocol, safety validation shouldn't be a separate step. This MCP server lets your AI assistant automatically:
Check if chemicals on the same deck are compatible
Flag dangerous mixing orders
Recommend PPE for the specific chemicals you're handling
Verify compliance with EU REACH, US OSHA/TSCA, and 6 other jurisdictions
Generate signed audit reports for GLP/GMP compliance
Tools (20)
Tool | Description |
| One-call comprehensive report: compatibility + PPE + storage grouping for a chemical list |
| Retrieve a specific SDS section (1-16) for a chemical |
| Safer substitutes for restricted or high-risk chemicals |
| Extract & validate chemical names from protocol text or code |
| Safe addition sequence for reagent pairs (e.g., acid into water) |
| Waste classification, container type, and disposal procedures |
| Upload MSDS PDF for AI-powered parsing and data extraction (requires API key) |
| Structured 7-dimension diff between SDS versions of a chemical |
| Pairwise compatibility for 2+ chemicals |
| GHS classification, H-codes, signal words, flash point |
| Gloves, eye protection, respiratory, body protection |
| Storage class, cabinet type, temperature, isolation rules |
| Spill, fire, or exposure emergency procedures |
| OEL/TLV/PEL/MAC across US, EU, JP, CN, INT |
| UN number, hazard class, packing group, ADR/IATA/IMDG |
| Multi-region: EU, US, CN, JP, KR, CA, AU, TW |
| Look up chemicals by name, synonym, or CAS number |
| Natural language catch-all for any safety question |
| Full audit with signed PDF report (requires API key) |
| Download link for the signed audit PDF |
Quick Start
1. Get an API key
Sign up at msdschain.lagentbot.com → API Keys tab → create a key.
2. Install
git clone https://github.com/littleblakew/msds-chain-mcp.git
cd msds-chain-mcp
pip install -r requirements.txt3. Add to your AI coding agent
Claude Code (Remote — recommended):
claude mcp add msds-chain --transport sse --url https://mcp.lagentbot.com/sseClaude Code (Plugin — includes skill + MCP):
/plugin install https://github.com/littleblakew/msds-chain-mcp.gitClaude Code (npm — local):
claude mcp add msds-chain -- npx -y msds-chain-mcp@latestclaude.ai (Web): Search "msds-chain" in Settings > Plugins (already published).
Manual config (Claude Code ~/.claude.json):
{
"mcpServers": {
"msds-chain": {
"type": "sse",
"url": "https://mcp.lagentbot.com/sse",
"env": {
"MSDS_API_KEY": "sk-msds-your-key-here"
}
}
}
}Restart Claude Code. You should see msds-chain in the MCP tools list.
Claude Code Skill
The /msds-safety-check skill provides auto-detection and guided audit workflows.
Plugin install (includes skill + MCP automatically):
/plugin install https://github.com/littleblakew/msds-chain-mcp.gitManual install (skill only, if MCP already configured):
git clone https://github.com/littleblakew/msds-chain-mcp.git /tmp/msds-chain-mcp
cp -r /tmp/msds-chain-mcp/skills/msds-safety-check .agents/skills/msds-safety-check
ln -s ../../.agents/skills/msds-safety-check .claude/skills/msds-safety-checkWhat the Skill Does
Auto-detects chemicals in your conversations and offers safety checks
/msds-safety-check— guided audit for lab protocols or EHS complianceFreemium — basic queries work without API key, audit reports require free registration
Usage Examples
Experiment Protocol Review
User: I'm planning a Grignard reaction with magnesium turnings, diethyl ether,
and bromobenzene. Check if this setup is safe.
Claude:
→ calls batch_safety_check(["magnesium", "diethyl ether", "bromobenzene"])
→ Returns: compatibility matrix, PPE requirements, storage groupingOpentrons Deck Safety Audit
User: My Opentrons deck has these in different slots:
Slot 1: Acetone, Slot 3: Concentrated H2SO4, Slot 5: Methanol,
Slot 7: Sodium borohydride. Any safety issues?
Claude:
→ calls check_chemical_compatibility(["acetone", "sulfuric acid", "methanol", "sodium borohydride"])
→ ⚠️ INCOMPATIBLE: Sodium borohydride + sulfuric acid (violent reaction, H2 gas evolution)
→ ⚠️ CAUTION: Acetone + sulfuric acid (exothermic)
→ Recommendation: Move sodium borohydride to maximum distance from acidsCompliance Check Before Shipping
User: We need to ship toluene and dichloromethane to our Japan lab.
What transport regulations apply?
Claude:
→ calls get_transport_classification(["toluene", "dichloromethane"])
→ calls check_regulatory_compliance(["toluene", "dichloromethane"], regions=["JP"])
→ Returns: UN numbers, IATA packing instructions, Japan-specific regulationsGenerate Signed Audit Report
User: Create a safety audit report for our quarterly review.
Chemicals: acetone, methanol, ethanol, isopropanol, hexane.
Claude:
→ calls create_audit_session("Q2 2026 Solvent Cabinet Review", ["acetone", "methanol", "ethanol", "isopropanol", "hexane"])
→ calls get_audit_report("SESSION-ID")
→ Returns: Signed PDF URL (Ed25519 signature, suitable for GLP/GMP compliance)Third-Party AI Platform Integration
Connect to the hosted MSDS Chain MCP server from any AI platform that supports MCP.
Server URL: https://mcp.lagentbot.com
Transport | Endpoint | When to use |
SSE |
| Most third-party platforms (悟空, Dify, Coze, etc.) |
Streamable HTTP |
| Claude Code 2026+, newer MCP clients |
Authentication: Add an HTTP header — Authorization: Bearer sk-msds-your-key
悟空 (Wukong)
设置 → MCP 服务 → + 添加
类型:SSE
名称:
msds-chainURL:
https://mcp.lagentbot.com/sseHTTP Headers:
Authorization:Bearer sk-msds-your-key点击「添加」
Dify / Coze / other platforms
General steps:
Find MCP server / tool integration settings
Select SSE transport type
Set URL to
https://mcp.lagentbot.com/sseAdd authentication header:
Authorization: Bearer sk-msds-your-key
Get an API key: Sign up at msdschain.lagentbot.com → API Keys tab → Create Key.
Remote Mode (HTTP)
For cloud deployment or shared team access, run as an HTTP server:
# Streamable HTTP (recommended for Claude Code 2026+)
MSDS_API_KEY=sk-msds-xxx python server_remote.py
# Or SSE mode
MSDS_MCP_TRANSPORT=sse MSDS_API_KEY=sk-msds-xxx python server_remote.pyConnect from Claude Code:
claude mcp add msds-chain --transport http https://your-server.example.com/mcpDocker
docker build -t msds-chain-mcp .
docker run -p 8080:8080 -e MSDS_API_KEY=sk-msds-xxx msds-chain-mcpConfiguration
Variable | Default | Description |
| (required) | API key from the MSDS Chain dashboard |
| Production URL | Override to point at dev/self-hosted instance |
|
| Response language: |
Use Cases
Lab Automation (Opentrons / Hamilton / Tecan)
Pre-run protocol safety audit
Deck layout compatibility verification
Automated run compliance reports
Electronic Lab Notebooks (Benchling / LabArchives)
Safety annotations on experiment entries
Chemical registration with auto-flagging
Pharmaceutical R&D
Synthesis route safety screening
Multi-region regulatory pre-checks for new compounds
GMP-ready audit trail with signed receipts
Data Coverage — ChainSDS
Industry-sourced, AI-verified, and cryptographically signed.
28,000+ chemicals with multi-language aliases (EN/ZH/JA)
NFPA/GHS classification for compatibility rules
8 regulatory jurisdictions (EU, US, CN, JP, KR, CA, AU, TW)
Occupational exposure limits from 5 standards (OSHA PEL, ACGIH TLV, EU IOELV, JP OEL, CN GBZ)
UN transport data for 16+ common lab chemicals
Version tracking with 7-dimension SDS diff for regulatory updates
Architecture
Your AI Agent (Brain) MSDS Chain MCP (Hands)
┌──────────────────┐ ┌─────────────────────────┐
│ Claude Code │──MCP────▶│ server.py (stdio/SSE) │
│ Cursor │ │ ↓ │
│ Any MCP client │ │ MSDS Chain Backend API │
└──────────────────┘ │ ↓ │
│ Safety Reasoning Engine │
│ (Rules + LLM fallback) │
└─────────────────────────┘The MCP server is a thin client — all safety reasoning happens on the MSDS Chain backend (rule engine + Azure OpenAI GPT-4o fallback for edge cases).
Development
Test locally with the MCP inspector:
export MSDS_API_KEY=sk-msds-your-key
npx @modelcontextprotocol/inspector python server.pyRoadmap
get_waste_disposal— waste classification and disposal guidancecheck_mixing_order— safe addition sequence for reagent pairsget_chemical_alternatives— safer substitutes for restricted chemicalsRemote MCP (HTTP SSE / Streamable HTTP) for cloud-hosted access
OAuth 2.1 for Claude Marketplace integration (skeleton — needs Redis/DB for production)
License
MIT
About
Built by LAgentBot — AI-powered chemical safety infrastructure.
Part of the MSDS Chain platform — the world's first AI Agent-driven chemical safety data trust network, powered by ChainSDS: verified, current, and growing.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/littleblakew/msds-chain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server