Back to Home
openpharma-org icon

pubchem-mcp

Verified Safe

by openpharma-org

Overview

This server provides a Model Context Protocol (MCP) interface to the PubChem chemical database, enabling AI models or applications to perform chemical searches, retrieve compound information, analyze structures, fetch properties, access bioassay data, and query safety information.

Installation

Run Command
node build/index.js

Security Notes

The server appears well-designed with robust input validation (using `isValid...Args` functions) for all implemented tools, which helps prevent common injection vulnerabilities when interacting with the external PubChem PUG REST API. All API calls to PubChem use `encodeURIComponent` for query parameters, further enhancing safety. There are no `eval` statements, explicit dangerous `child_process` calls (beyond the Node.js runtime itself), or direct sensitive file system operations detected in the provided source code. No hardcoded secrets (like API keys) are present, aligning with PubChem's public API policy. The server acts as a proxy, and its overall security model relies on the inherent security of the PubChem API. Potential for high volume data retrieval (e.g., from similarity searches or batch lookups with many records) exists, which could impact server resources if not managed by the caller, but this is an operational concern rather than a code vulnerability. Unimplemented methods gracefully return an `ErrorCode.MethodNotFound` error.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens5000
Stars0
Forks0
Last Update2025-12-22

Tags

chemistrypubchemchemical-databasemcp-serverdrug-discovery