Bring Dianshi chemistry search into your AI workflow
A protected Streamable HTTP MCP endpoint lets models call substance, reaction, reference, and similarity search tools as composable research steps.
How to use MCP tools
The MCP service is served by a Next.js API route. Enable MCP, then configure the same HTTP endpoint and Authorization header in your MCP client.
1. Configure your MCP client
Add the Dianshi endpoint in a Streamable HTTP capable MCP client and include the SSO Bearer Token.
{
"mcpServers": {
"dianshi": {
"url": "https://dianshi.opendatalab.org.cn/api/mcp",
"headers": {
"Authorization": "Bearer <SSO_TOKEN>"
}
}
}
}2. Let the model call tools
After connection, the model can choose tools such as substance_search, reaction_conditions, or reference_search.
tool: substance_similarity
arguments: {
"smiles": "CCO",
"threshold": 0.55,
"limit": 10
}How to test MCP tools
Validate from low risk to real queries: auth and tool listing first, health_check next, then structure and reaction similarity tools.
curl -X POST https://dianshi.opendatalab.org.cn/api/mcp \
-H 'Authorization: Bearer <SSO_TOKEN>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'curl -X POST https://dianshi.opendatalab.org.cn/api/mcp \
-H 'Authorization: Bearer <SSO_TOKEN>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"health_check","arguments":{}}}'MCP capabilities
The current surface covers database health, substance search, reaction search, and reference search. Structure tools depend on the RDKit cartridge and valid SMILES input.
Substance search
Search by name, SMILES, InChI Key, synonym, similarity, or substructure.
Reaction search
Search reaction SMILES, find reactions by product, and load examples, conditions, reagents, and yields.
Reaction similarity
Search related reactions by topology, split difference bit fingerprints, or Morgan difference fingerprints.
Reference search
Full-text reference search plus detail lookup with DOI, abstract preview, and relationship counts.
Tool matrix
Every tool returns a JSON text payload so models can keep parsing and citing results.
health_checksubstance_searchsubstance_get_by_idsubstance_similaritysubstance_substructurereaction_searchreaction_get_by_hashreaction_conditionsreaction_by_productreaction_similar_structreaction_similar_diff_bfpreaction_similar_diff_morganreference_searchreference_get_by_id