Skip to main content
Glama
Augmented-Nature

Unofficial PubChem MCP Server

get_external_references

Retrieve external database links for PubChem compounds to access related information in ChEMBL, DrugBank, KEGG, and other resources.

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 executing the 'get_external_references' tool logic. Currently a placeholder returning 'not yet implemented' message.
    private async handleGetExternalReferences(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'External references not yet implemented', args }, null, 2) }] }; }
  • Input schema definition for the 'get_external_references' tool, specifying the required 'cid' parameter.
    inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, }, required: ['cid'], },
  • src/index.ts:685-695 (registration)
    Tool registration entry in the tools array passed to server.setTools(), including name, description, and 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)
    Switch case in the request handler that dispatches calls to the 'get_external_references' handler method.
    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