Skip to main content
Glama
Augmented-Nature

Unofficial PubChem MCP Server

search_by_cas_number

Identify chemical compounds using their CAS Registry Number. Access detailed molecular properties and bioassay data from the PubChem database quickly and efficiently.

Instructions

Search for compounds by CAS Registry Number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cas_numberYesCAS Registry Number (e.g., 50-78-2)

Implementation Reference

  • The main handler function for the 'search_by_cas_number' tool. It is a placeholder implementation that returns a 'not yet implemented' message.
    private async handleSearchByCasNumber(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'CAS search not yet implemented', args }, null, 2) }] }; }
  • The input schema definition for the search_by_cas_number tool, specifying the required 'cas_number' parameter as a string.
    inputSchema: { type: 'object', properties: { cas_number: { type: 'string', description: 'CAS Registry Number (e.g., 50-78-2)' }, }, required: ['cas_number'], },
  • src/index.ts:417-427 (registration)
    Registration of the search_by_cas_number tool in the ListToolsRequestSchema response, including name, description, and schema.
    { name: 'search_by_cas_number', description: 'Search for compounds by CAS Registry Number', inputSchema: { type: 'object', properties: { cas_number: { type: 'string', description: 'CAS Registry Number (e.g., 50-78-2)' }, }, required: ['cas_number'], }, },
  • src/index.ts:748-749 (registration)
    Dispatch/registration case in the CallToolRequestSchema handler that routes calls to the handleSearchByCasNumber method.
    case 'search_by_cas_number': return await this.handleSearchByCasNumber(args);

Latest Blog Posts

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/Augmented-Nature/Augmented-Nature-PubChem-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server