Chemspace MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chemspace MCP Serversearch for compounds similar to CC(=O)OC1=CC=CC=C1C(=O)O"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chemspace-mcp
A Model Context Protocol (MCP) server that provides a wrapper for the Chemspace API, enabling AI agents to search for synthesizable building blocks and screening compounds through exact, substructure, and similarity searches.
Features
Exact Search: Find exact molecular matches by SMILES
Substructure Search: Find compounds containing a specific substructure
Similarity Search: Find structurally similar compounds by SMILES
Multiple Product Categories: Search across in-stock and make-on-demand compounds
Global Shipping: Specify shipping countries with ISO country codes
Related MCP server: PubChem MCP Server
Requirements
Python 3.13+
Chemspace API key
Installation
Prerequisites
Install uv:
# macOS
brew install uv
# Linux/WSL2
curl -LsSf https://astral.sh/uv/install.sh | shSetup
Clone the repository and navigate to the project directory
Set your Chemspace API key as an environment variable:
export CHEMSPACE_API_KEY="your-api-key-here"Install dependencies and run:
uv run chemspace-mcp
Configuration
For use with FastAgent
Configure example/fastagent.secrets.yaml. Environment variables set here will override the ones in your shell:
anthropic:
api_key: your-anthropic-api-key
mcp:
servers:
chemspace:
env:
CHEMSPACE_API_KEY: your-chemspace-api-keyThen run the example interface with FastAgent:
cd example
uv run --extra agent agent.pyUsage
The MCP server exposes the following tools:
search_exact
Searches for exact molecular matches by SMILES string.
Parameters:
smiles(string): The SMILES string to search forshipToCountry(string): Two-letter ISO country code (default: "US")count(integer): Maximum results per page (default: 10)page(integer): Page number for pagination (default: 1)categories(list): Product categories to search:CSSB: In-stock building blocksCSSS: In-stock screening compoundsCSMB: Make-on-demand building blocksCSMS: Make-on-demand screening compoundsCSCS: Custom requests
search_substructure
Searches for compounds containing a specific substructure.
Parameters: Same as search_exact
search_similarity
Searches for structurally similar compounds.
Parameters: Same as search_exact
Project Structure
chemspace-mcp/
├── src/
│ └── chemspace_mcp/
│ ├── __init__.py # Entry point and MCP server initialization
│ ├── tools.py # Tool definitions for chemical searches
│ └── tokenmanager.py # Token management for API authentication
├── example/
│ ├── agent.py # Example FastAgent integration
│ ├── fastagent.config.yaml # FastAgent configuration
│ └── fastagent.secrets.yaml # Secrets configuration (not in version control)
├── pyproject.toml # Project metadata and dependencies
└── README.md # This fileDevelopment
Dependencies
fastmcp>=2.13.1: Core MCP server frameworkfast-agent-mcp>=0.2.25: FastAgent integration
License
MIT License
Support
For issues or questions, please open an issue on the project repository.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI agents and applications to search, retrieve, and analyze chemical compounds, substances, and bioassays from PubChem's vast chemical information database through comprehensive tools for chemical research and discovery.Last updated101,0619Apache 2.0
- Flicense-qualityDmaintenanceEnables AI assistants to search and retrieve chemical compound information, structures, and physical properties from the PubChem database. It supports querying via compound names, SMILES notation, or CIDs to provide detailed molecular data for chemical analysis.Last updated5
- FlicenseBqualityFmaintenanceExtracts basic chemical information and drug data from the PubChem API. It enables users to retrieve molecular details such as SMILES, IUPAC names, molecular formulas, and synonyms for specific compounds.Last updated311
- Alicense-qualityDmaintenanceEnables interaction with Edison Scientific platform's AI agents for scientific research, chemistry, and literature search, supporting tasks like synthesis planning, literature reviews, and data analysis.Last updated5MIT
Related MCP Connectors
Curated knowledge API for AI agents - skill packs, semantic search, validated patterns.
Search companies, enrich contacts, and reveal emails and phones from your AI agent.
Web search for AI agents — one tool across 6 engines, routed to the cheapest + cached.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/lukasmki/chemspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server