Skip to main content
Glama
Augmented-Nature

Unofficial PubChem MCP Server

get_external_references

Retrieve external database links for a PubChem compound, including ChEMBL, DrugBank, and KEGG, by providing the CID to access cross-referenced information.

Instructions

Get links to external databases (ChEMBL, DrugBank, KEGG, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cidYesPubChem Compound ID (CID)

Implementation Reference

  • The main handler function for the 'get_external_references' tool. It currently returns a placeholder response indicating that the feature is not yet implemented.
    private async handleGetExternalReferences(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'External references not yet implemented', args }, null, 2) }] }; }
  • The input schema definition for the tool, specifying that a 'cid' parameter (PubChem Compound ID) is required.
    inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
  • src/index.ts:685-695 (registration)
    The tool registration object added to the MCP server's tools list, including name, description, and input schema.
    { name: 'get_external_references', description: 'Get links to external databases (ChEMBL, DrugBank, KEGG, etc.)', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], }, },
  • src/index.ts:802-803 (registration)
    The switch case in the request handler that dispatches calls to this tool to its handler function.
    case 'get_external_references': return await this.handleGetExternalReferences(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