Looks up drug and compound data from the PubChem API, such as molecular formula, weight and CAS number.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add pubchem-server-sssjiang -- uvx pubchem_mcp_server~/.codex/config.toml
[mcp_servers.pubchem-server-sssjiang]
command = "uvx"
args = ["pubchem_mcp_server"]
# codex mcp add pubchem-server-sssjiang -- uvx pubchem_mcp_server~/.cursor/mcp.json
{
"mcpServers": {
"pubchem-server-sssjiang": {
"command": "uvx",
"args": [
"pubchem_mcp_server"
]
}
}
}.vscode/mcp.json
{
"servers": {
"pubchem-server-sssjiang": {
"type": "stdio",
"command": "uvx",
"args": [
"pubchem_mcp_server"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"pubchem-server-sssjiang": {
"command": "uvx",
"args": [
"pubchem_mcp_server"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"pubchem-server-sssjiang": {
"command": "uvx",
"args": [
"pubchem_mcp_server"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"pubchem-server-sssjiang": {
"command": "uvx",
"args": [
"pubchem_mcp_server"
]
}
}
}