chemical_structure_comparison

Chemical Structure Comparison - Compare chemical structures: get SMILES, analyze structures, compute similarity, and check PubChem records. Use this skill for cheminformatics tasks involving NameToSMILES ChemicalStructureAnalyzer calculate smiles similarity get compound by name. Combines 4 tools from 4 SCP server(s).

Best use case

chemical_structure_comparison is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Chemical Structure Comparison - Compare chemical structures: get SMILES, analyze structures, compute similarity, and check PubChem records. Use this skill for cheminformatics tasks involving NameToSMILES ChemicalStructureAnalyzer calculate smiles similarity get compound by name. Combines 4 tools from 4 SCP server(s).

Teams using chemical_structure_comparison should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/chemical_structure_comparison/SKILL.md --create-dirs "https://raw.githubusercontent.com/SpectrAI-Initiative/InnoClaw/main/.claude/skills/chemical_structure_comparison/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/chemical_structure_comparison/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How chemical_structure_comparison Compares

Feature / Agentchemical_structure_comparisonStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Chemical Structure Comparison - Compare chemical structures: get SMILES, analyze structures, compute similarity, and check PubChem records. Use this skill for cheminformatics tasks involving NameToSMILES ChemicalStructureAnalyzer calculate smiles similarity get compound by name. Combines 4 tools from 4 SCP server(s).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Chemical Structure Comparison

**Discipline**: Cheminformatics | **Tools Used**: 4 | **Servers**: 4

## Description

Compare chemical structures: get SMILES, analyze structures, compute similarity, and check PubChem records.

## Tools Used

- **`NameToSMILES`** from `server-31` (sse) - `https://scp.intern-ai.org.cn/api/v1/mcp/31/SciToolAgent-Chem`
- **`ChemicalStructureAnalyzer`** from `server-28` (sse) - `https://scp.intern-ai.org.cn/api/v1/mcp/28/InternAgent`
- **`calculate_smiles_similarity`** from `server-2` (streamable-http) - `https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool`
- **`get_compound_by_name`** from `pubchem-server` (streamable-http) - `https://scp.intern-ai.org.cn/api/v1/mcp/8/Origene-PubChem`

## Workflow

1. Convert names to SMILES
2. Analyze both structures
3. Compute similarity
4. Get PubChem compound data

## Test Case

### Input
```json
{
    "compound_a": "aspirin",
    "compound_b": "ibuprofen"
}
```

### Expected Steps
1. Convert names to SMILES
2. Analyze both structures
3. Compute similarity
4. Get PubChem compound data

## Usage Example

> **Note:** Replace `sk-b04409a1-b32b-4511-9aeb-22980abdc05c` with your own SCP Hub API Key. You can obtain one from the [SCP Platform](https://scphub.intern-ai.org.cn).

```python
import asyncio
import json
from contextlib import AsyncExitStack
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
from mcp.client.sse import sse_client

SERVERS = {
    "server-31": "https://scp.intern-ai.org.cn/api/v1/mcp/31/SciToolAgent-Chem",
    "server-28": "https://scp.intern-ai.org.cn/api/v1/mcp/28/InternAgent",
    "server-2": "https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool",
    "pubchem-server": "https://scp.intern-ai.org.cn/api/v1/mcp/8/Origene-PubChem"
}

async def connect(url, stack):
    transport = streamablehttp_client(url=url, headers={"SCP-HUB-API-KEY": "sk-b04409a1-b32b-4511-9aeb-22980abdc05c"})
    read, write, _ = await stack.enter_async_context(transport)
    ctx = ClientSession(read, write)
    session = await stack.enter_async_context(ctx)
    await session.initialize()
    return session

def parse(result):
    try:
        if hasattr(result, 'content') and result.content:
            c = result.content[0]
            if hasattr(c, 'text'):
                try: return json.loads(c.text)
                except: return c.text
        return str(result)
    except: return str(result)

async def main():
    async with AsyncExitStack() as stack:
        # Connect to required servers
        sessions = {}
        sessions["server-31"] = await connect("https://scp.intern-ai.org.cn/api/v1/mcp/31/SciToolAgent-Chem", stack)
        sessions["server-28"] = await connect("https://scp.intern-ai.org.cn/api/v1/mcp/28/InternAgent", stack)
        sessions["server-2"] = await connect("https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool", stack)
        sessions["pubchem-server"] = await connect("https://scp.intern-ai.org.cn/api/v1/mcp/8/Origene-PubChem", stack)

        # Execute workflow steps
        # Step 1: Convert names to SMILES
        result_1 = await sessions["server-31"].call_tool("NameToSMILES", arguments={})
        data_1 = parse(result_1)
        print(f"Step 1 result: {json.dumps(data_1, indent=2, ensure_ascii=False)[:500]}")

        # Step 2: Analyze both structures
        result_2 = await sessions["server-28"].call_tool("ChemicalStructureAnalyzer", arguments={})
        data_2 = parse(result_2)
        print(f"Step 2 result: {json.dumps(data_2, indent=2, ensure_ascii=False)[:500]}")

        # Step 3: Compute similarity
        result_3 = await sessions["server-2"].call_tool("calculate_smiles_similarity", arguments={})
        data_3 = parse(result_3)
        print(f"Step 3 result: {json.dumps(data_3, indent=2, ensure_ascii=False)[:500]}")

        # Step 4: Get PubChem compound data
        result_4 = await sessions["pubchem-server"].call_tool("get_compound_by_name", arguments={})
        data_4 = parse(result_4)
        print(f"Step 4 result: {json.dumps(data_4, indent=2, ensure_ascii=False)[:500]}")

        # Cleanup
        print("Workflow complete!")

if __name__ == "__main__":
    asyncio.run(main())
```

Related Skills

substructure_activity_search

370
from SpectrAI-Initiative/InnoClaw

Substructure-Activity Relationship - Analyze substructure-activity: ChEMBL substructure search, activity data, PubChem compounds, and similarity. Use this skill for medicinal chemistry tasks involving get substructure by smiles search activity search pubchem by smiles calculate smiles similarity. Combines 4 tools from 3 SCP server(s).

protein_structure_analysis

370
from SpectrAI-Initiative/InnoClaw

Protein Structure Comprehensive Analysis - Comprehensive structure analysis: download PDB, extract chains, calculate geometry, quality metrics, and composition. Use this skill for structural biology tasks involving retrieve protein data by pdbcode extract pdb chains calculate pdb structural geometry calculate pdb quality metrics calculate pdb composition info. Combines 5 tools from 1 SCP server(s).

protein_property_comparison

370
from SpectrAI-Initiative/InnoClaw

Cross-Species Protein Comparison - Compare proteins across species: get orthologs from NCBI, compute properties for each, and compare similarity. Use this skill for comparative biology tasks involving get gene orthologs calculate protein sequence properties calculate smiles similarity get homology id. Combines 4 tools from 3 SCP server(s).

drug_target_structure

370
from SpectrAI-Initiative/InnoClaw

Drug-Target Structural Biology - Integrate drug and target structure: get drug from ChEMBL, target structure from PDB, dock them, and predict ADMET. Use this skill for structural pharmacology tasks involving get drug by name retrieve protein data by pdbcode quick molecule docking pred molecule admet. Combines 4 tools from 3 SCP server(s).

chemical_safety_assessment

370
from SpectrAI-Initiative/InnoClaw

Chemical Safety Assessment - Assess chemical safety: PubChem compound info, FDA drug data, ADMET prediction, and structural alerts from ChEMBL. Use this skill for chemical safety tasks involving get general info by compound name get warnings and cautions by drug name pred molecule admet get compound structural alert. Combines 4 tools from 4 SCP server(s).

chemical_property_profiling

370
from SpectrAI-Initiative/InnoClaw

Chemical Property Profiling - Profile chemical properties: basic info, hydrophobicity, H-bonds, charges, and molecular complexity. Use this skill for physical chemistry tasks involving calculate mol basic info calculate mol hydrophobicity calculate mol hbond calculate mol charge calculate mol complexity. Combines 5 tools from 1 SCP server(s).

chemical_patent_analysis

370
from SpectrAI-Initiative/InnoClaw

Chemical Patent & Novelty Analysis - Analyze chemical novelty: PubChem substructure CAS search, ChEMBL similarity search, compound synonyms, and literature. Use this skill for patent chemistry tasks involving get substructure cas get similarity by smiles get compound synonyms by name search literature. Combines 4 tools from 3 SCP server(s).

chemical-structure-analysis

370
from SpectrAI-Initiative/InnoClaw

Analyze chemical structures from compound names to retrieve SMILES, molecular formulas, molecular weight, and LogP values.

chemical-mass-percent-calculation

370
from SpectrAI-Initiative/InnoClaw

Calculate mass percentages and stoichiometric ratios for chemical reactions and compound compositions.

alphafold_structure_pipeline

370
from SpectrAI-Initiative/InnoClaw

AlphaFold Structure Analysis Pipeline - AlphaFold pipeline: download predicted structure, predict pockets, extract sequence, and compute properties. Use this skill for computational biology tasks involving download alphafold structure run fpocket extract pdb sequence calculate pdb basic info. Combines 4 tools from 3 SCP server(s).

wind-site-assessment

370
from SpectrAI-Initiative/InnoClaw

Assess wind energy potential and perform site analysis using atmospheric science calculations.

web_literature_mining

370
from SpectrAI-Initiative/InnoClaw

Scientific Literature Mining - Mine scientific literature: PubMed search, arXiv search, web search, and Tavily deep search. Use this skill for scientific informatics tasks involving pubmed search search literature search web tavily search. Combines 4 tools from 2 SCP server(s).