pubchem-mcp-server
공개 호스팅 서버: https://pubchem.caseyjhand.com/mcp
도구
PubChem의 화학 정보 데이터베이스를 쿼리하기 위한 8가지 도구:
도구 이름 | 설명 |
| 이름, SMILES, InChIKey, 화학식, 부분 구조, 상위 구조 또는 2D 유사성을 통해 화합물을 검색합니다. |
| CID를 통해 화합물의 물리화학적 속성, 설명, 동의어, 약물 유사성 및 분류를 가져옵니다. |
| CID를 통해 화합물의 2D 구조 다이어그램(PNG)을 가져옵니다. |
| 화합물의 GHS 유해성 분류 및 안전성 데이터를 가져옵니다. |
| 외부 데이터베이스 상호 참조(PubMed, 특허, 유전자, 단백질 등)를 가져옵니다. |
| 화합물의 생물학적 활성 프로필(분석 결과, 표적 및 활성 값)을 가져옵니다. |
| 생물학적 표적(유전자 기호, 단백질, 유전자 ID, UniProt 접근 번호)으로 생물학적 분석을 찾습니다. |
| PubChem 엔티티(분석, 유전자, 단백질, 분류)에 대한 요약을 가져옵니다. |
pubchem_search_compounds
5가지 검색 모드를 통해 PubChem에서 화학 화합물을 검색합니다.
식별자 조회 — 화합물 이름, SMILES 또는 InChIKey를 CID로 확인 (최대 25개 일괄 처리)
화학식 검색 — Hill 표기법으로 분자식에 따른 화합물 찾기
부분 구조/상위 구조 — 쿼리 구조를 포함하거나 쿼리 구조에 포함된 화합물 찾기
2D 유사성 — Tanimoto 유사성(임계값 설정 가능)을 통해 구조적으로 유사한 화합물 찾기
선택적으로 후속 세부 정보 호출을 피하기 위해 속성으로 결과를 하이드레이션(hydrate) 가능
pubchem_get_compound_details
CID를 통해 상세 화합물 정보를 가져옵니다.
단일 요청으로 최대 100개의 CID 일괄 처리
27가지 사용 가능한 속성: 분자량, SMILES, InChIKey, XLogP, TPSA, 복잡도, 입체 수 등
PUG View에서 텍스트 설명(약리학, 메커니즘, 치료 용도)을 선택적으로 포함
알려진 모든 동의어(상품명, 체계적 이름, 등록 번호)를 선택적으로 포함
가져온 속성에서 약물 유사성 평가(Lipinski의 5법칙 + Veber 규칙)를 선택적으로 계산
약리학적 분류(FDA 분류, 작용 메커니즘, MeSH 분류, ATC 코드)를 선택적으로 가져오기
pubchem_get_bioactivity
PubChem BioAssay에서 화합물의 생물학적 활성 프로필을 가져옵니다.
분석 결과(활성/비활성/결정 불가), 표적 정보(단백질 접근 번호, NCBI 유전자 ID) 및 정량적 값(IC50, EC50, Ki) 반환
활성 결과에 집중하기 위해 결과별 필터링 가능
요청당 최대 100개 결과로 제한 (잘 연구된 화합물은 수천 개가 있을 수 있음)
pubchem_get_summary
4가지 PubChem 엔티티 유형에 대한 설명 요약을 가져옵니다.
분석(AID), 유전자(유전자 ID), 단백질(UniProt 접근 번호), 분류(Tax ID)
호출당 최대 10개 엔티티
깔끔하고 구조화된 출력을 위한 유형별 필드 추출
Related MCP server: PubChem Chemical Safety MCP Server
기능
@cyanheads/mcp-ts-core 기반으로 구축됨:
선언적 도구 정의 — 도구당 단일 파일, 프레임워크가 등록 및 유효성 검사 처리
모든 도구에 걸친 통합 오류 처리
플러그인 가능한 인증 (
none,jwt,oauth)교체 가능한 저장소 백엔드:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1선택적 OpenTelemetry 추적을 포함한 구조화된 로깅
로컬(stdio/HTTP) 또는 Docker를 통한 컨테이너화 실행
PubChem 전용:
PUG REST 및 PUG View API를 위한 속도 제한 클라이언트 (자동 대기열 포함 초당 5회 요청)
5xx 오류 및 네트워크 실패 시 지수 백오프를 통한 재시도
모든 도구는 읽기 전용이며 멱등성을 가짐 — API 키 불필요
시작하기
공개 호스팅 인스턴스
공개 인스턴스는 https://pubchem.caseyjhand.com/mcp에서 사용할 수 있습니다. 설치가 필요 없습니다. 스트리밍 가능한 HTTP를 통해 모든 MCP 클라이언트를 해당 주소로 지정하세요:
{
"mcpServers": {
"pubchem": {
"type": "streamable-http",
"url": "https://pubchem.caseyjhand.com/mcp"
}
}
}자체 호스팅 / 로컬
MCP 클라이언트 구성(예: claude_desktop_config.json)에 추가하세요:
{
"mcpServers": {
"pubchem": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/pubchem-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio"
}
}
}
}사전 요구 사항
Bun v1.2.0 이상 (또는 Node.js v22+)
설치
저장소 복제:
git clone https://github.com/cyanheads/pubchem-mcp-server.git디렉토리로 이동:
cd pubchem-mcp-server의존성 설치:
bun install구성
API 키가 필요하지 않습니다. PubChem의 API는 자유롭게 액세스할 수 있습니다.
변수 | 설명 | 기본값 |
| 전송 방식: |
|
| HTTP 서버용 포트. |
|
| HTTP 서버용 호스트. |
|
| 인증 모드: |
|
| 로그 레벨 (RFC 5424). |
|
| 저장소 백엔드. |
|
| OpenTelemetry 활성화. |
|
서버 실행
로컬 개발
빌드 및 실행:
bun run rebuild bun run start:stdio # or start:http검사 및 테스트 실행:
bun run devcheck # Lints, formats, type-checks bun run test # Runs test suite
Docker
docker build -t pubchem-mcp-server .
docker run -p 3010:3010 pubchem-mcp-server프로젝트 구조
디렉토리 | 목적 |
| 도구 정의 ( |
| 속도 제한 및 응답 파싱이 포함된 PubChem API 클라이언트. |
| 빌드, 정리, devcheck 및 트리 생성 스크립트. |
개발 가이드
개발 지침 및 아키텍처 규칙은 CLAUDE.md를 참조하세요. 요약하자면:
핸들러는 예외를 던지고 프레임워크가 이를 포착합니다. 도구 로직 내에서
try/catch를 사용하지 마세요.도메인별 로깅에는
ctx.log를 사용하세요.index.ts배럴 파일에 새 도구를 등록하세요.
기여
이슈 및 풀 리퀘스트를 환영합니다. 제출 전 검사를 실행하세요:
bun run devcheck
bun run test라이선스
Apache-2.0 — 자세한 내용은 LICENSE를 참조하세요.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables comprehensive access to PubChem's chemical database with over 110 million compounds. Supports chemical searches, structure analysis, bioactivity data, safety information, and molecular property calculations through 30 specialized tools.30MIT
- AlicenseBqualityDmaintenanceEnables users to retrieve chemical safety information including compound properties, GHS safety classifications, and toxicity data from PubChem database using compound names or CIDs. Supports batch queries with caching for efficient chemical safety research and analysis.3MIT
- AlicenseBqualityCmaintenanceEnables AI agents to search the Chemspace API for synthesizable building blocks and screening compounds using exact matches, substructure searches, and similarity searches by SMILES strings.31MIT
- Flicense-qualityDmaintenanceEnables AI assistants to search and retrieve chemical compound information, structures, and physical properties from the PubChem database. It supports querying via compound names, SMILES notation, or CIDs to provide detailed molecular data for chemical analysis.5
Related MCP Connectors
Link compounds to protein targets, rank bioactivity, and look up drug mechanisms and indications.
Real-time Amazon, WIPO & PACER data for AI agents — 19 tools via the MCP protocol.
PubChem MCP — NIH chemistry compound database (no auth)
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cyanheads/pubchem-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server