pubchem-smiles-search

Search PubChem database using SMILES strings to retrieve compound information and chemical properties.

157 stars

Best use case

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

Search PubChem database using SMILES strings to retrieve compound information and chemical properties.

Teams using pubchem-smiles-search 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/pubchem-smiles-search/SKILL.md --create-dirs "https://raw.githubusercontent.com/InternScience/DrClaw/main/drclaw/agent_hub/templates/chemistry/skills/pubchem-smiles-search/SKILL.md"

Manual Installation

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

How pubchem-smiles-search Compares

Feature / Agentpubchem-smiles-searchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Search PubChem database using SMILES strings to retrieve compound information and chemical properties.

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

# PubChem SMILES Search

## Usage

```python
import asyncio
import json
from mcp.client.streamable_http import streamablehttp_client
from mcp import ClientSession

class OrigeneClient:
    def __init__(self, server_url: str, api_key: str):
        self.server_url = server_url
        self.api_key = api_key
        self.session = None

    async def connect(self):
        try:
            self.transport = streamablehttp_client(url=self.server_url, headers={"SCP-HUB-API-KEY": self.api_key})
            self.read, self.write, self.get_session_id = await self.transport.__aenter__()
            self.session_ctx = ClientSession(self.read, self.write)
            self.session = await self.session_ctx.__aenter__()
            await self.session.initialize()
            return True
        except Exception as e:
            return False

    async def disconnect(self):
        if self.session:
            await self.session_ctx.__aexit__(None, None, None)
        if hasattr(self, 'transport'):
            await self.transport.__aexit__(None, None, None)

    def parse_result(self, result):
        if isinstance(result, dict):
            content_list = result.get("content") or []
        else:
            content_list = getattr(result, "content", []) or []
        texts = []
        for item in content_list:
            if isinstance(item, dict):
                if item.get("type") == "text":
                    texts.append(item.get("text") or "")
            else:
                if getattr(item, "type", None) == "text":
                    texts.append(getattr(item, "text", "") or "")
        return "".join(texts)

## Initialize and use
client = OrigeneClient("https://scp.intern-ai.org.cn/api/v1/mcp/8/Origene-PubChem", "<your-api-key>")
await client.connect()

result = await client.session.call_tool("search_pubchem_by_smiles", arguments={"smiles": "C[C@H](N)C(=O)O"})
print(client.parse_result(result))

await client.disconnect()
```

### Tool: `search_pubchem_by_smiles`
- Args: `smiles` (str) - SMILES notation
- Returns: PubChem compound data including CID, name, properties

### Use Cases
- Compound identification, chemical property lookup, drug database search

Related Skills

protein_similarity_search

157
from InternScience/DrClaw

Protein Similarity Search - Search for similar proteins: extract sequence from PDB, search structures with FoldSeek, find homologs with STRING, and check UniProt. Use this skill for bioinformatics tasks involving extract pdb sequence foldseek search get best similarity hits between species search uniprotkb entries. Combines 4 tools from 3 SCP server(s).

smiles_comprehensive_analysis

157
from InternScience/DrClaw

SMILES Comprehensive Analysis - Comprehensive SMILES analysis: validate, convert name, compute all molecular descriptors, and predict ADMET. Use this skill for cheminformatics tasks involving is valid smiles ChemicalStructureAnalyzer calculate mol basic info pred molecule admet. Combines 4 tools from 3 SCP server(s).

substructure_activity_search

157
from InternScience/DrClaw

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).

pubchem_deep_dive

157
from InternScience/DrClaw

PubChem Deep Dive Analysis - Deep dive into PubChem: compound info, bioassay summary, 3D conformers, synonyms, and general description. Use this skill for chemical databases tasks involving get pubchem compound by cid get assay summary by cid get conformers by cid get compound synonyms by name get general info by compound name. Combines 5 tools from 1 SCP server(s).

nsfc-research-foundation-writer

157
from InternScience/DrClaw

当用户明确要求"写/改研究基础""研究基础+工作条件+风险应对编排"时使用。为 NSFC 正文"(三)研究基础"写作/重构,并同步编排"工作条件"和"研究风险应对",用证据链证明项目可行、资源条件对位研究内容、风险预案可执行。

nsfc-research-content-writer

157
from InternScience/DrClaw

当用户明确要求"写/改研究内容""研究内容+创新+年度计划编排"时使用。为 NSFC 正文"(二)研究内容"写作/重构,并同步编排"特色与创新"和"三年年度研究计划",输出可直接落到 LaTeX 模板的三个 extraTex 文件。

scientific-literature-search

157
from InternScience/DrClaw

Search scientific literature and research papers using FlowSearch to find relevant academic articles and publications.

pubmed-article-search

157
from InternScience/DrClaw

Search PubMed database for scientific articles and publications to retrieve biomedical literature.

biomedical-web-search

157
from InternScience/DrClaw

Search biomedical literature and web content using Tavily search engine for research and clinical information.

academic-deep-research

157
from InternScience/DrClaw

Transparent, rigorous research with full methodology — not a black-box API wrapper. Conducts exhaustive investigation through mandated 2-cycle research per theme, APA 7th citations, evidence hierarchy, and 3 user checkpoints. Self-contained using native OpenClaw tools (web_search, web_fetch, sessions_spawn). Use for literature reviews, competitive intelligence, or any research requiring academic rigor and reproducibility.

kegg-gene-search

157
from InternScience/DrClaw

Search KEGG database for gene information to retrieve pathway associations, functional annotations, and disease links.

smiles-to-cas-conversion

157
from InternScience/DrClaw

Convert SMILES strings to CAS registry numbers using material informatics tools to identify chemical substances.