How to Use Chemistry Lookup in Development with Copilot

Integrate chemical compound data into applications with Copilot and ToolRouter.

Tool
Chemistry Lookup icon
Chemistry Lookup

Copilot makes PubChem compound data available in your IDE for building laboratory information systems, chemistry education platforms, and research data pipelines. The structured compound data maps directly to database schemas and visualisation libraries.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Chemistry Lookup tool:

  1. In Copilot Chat: "Look up ethanol using chemistry-lookup"
  2. Copilot returns structured compound data with all molecular identifiers
  3. Ask: "Generate a TypeScript interface for the compound lookup response"
  4. Request: "Write a function that validates a SMILES string using this data format"

Example Prompt

Try this with Copilot using the Chemistry Lookup tool
Look up five common pharmaceutical compounds using chemistry-lookup and return as JSON with CAS number, molecular formula, molecular weight, and canonical SMILES for each.

Tips

  • Use InChI keys as canonical identifiers for deduplication in compound databases
  • Build a SMILES string parser utility from the compound structure data
  • Cache compound data aggressively — molecular properties do not change