medical-hospital-mcp-server
医疗:医院信息搜索
该 MCP 服务提供医院搜索和医院详情查询能力,帮助用户发现医疗机构并核验院区、科室、联系方式、医院介绍和运营主体。
主要功能
🏥 医院名称模糊搜索
🏷️ 医院性质、等级和专业类型筛选
📍 省份、城市和院区地址查询
📞 医院联系方式与科室查询
🧾 医院详细介绍和运营主体核验
Related MCP server: Drug Interaction MCP Server
推荐调用流程
用户只提供医院名称、地区或等级时,先调用
medical_hospital_search。从候选结果中确认医院,并取得
hospitalId。调用
medical_hospital_detail查询该医院的院区、联系方式、科室和完整介绍。
不要使用医院名称代替 hospitalId 调用详情 Tool,也不要自行构造医院 ID。
服务设计说明
服务仅提供医院信息相关的 2 个只读 Tool。
所有成功响应统一使用
total/resultList顶层;详情命中时通常total=1。业务码
10001 查询数据为空归一化为total=0、resultList=[],不作为系统错误。Tool 不提供在线挂号、诊疗建议、预约、支付或写入能力。
环境要求
Python 3.10+
依赖:
mcp、python-dotenv、requests
本地快速启动
cd medical-hospital-mcp-server
python3 -m venv mcp_env
source mcp_env/bin/activate
pip install -r requirements.txt
cp .env.example .env
python server/mcp_server.py streamable-http服务默认地址:http://127.0.0.1:8000/mcp。支持 stdio、sse 和 streamable-http。
环境变量
INTEGRATOR_ID=your_integrator_id
SECRET_ID=your_secret_id
SECRET_KEY=your_secret_key
HANDAAS_REQUEST_TIMEOUT=30可用 Tool 与 Product ID
MCP Tool | 使用场景 | Product ID | 关键输入 |
| 按名称、性质、等级、专业类型和省份发现医院 |
| 医院筛选条件、分页 |
| 查询单家医院的院区、联系方式、科室和详细介绍 |
|
|
Tool 详细说明
1. medical_hospital_search
何时使用:用户询问某家医院、某地区医院、某等级医院或某类专科医院时使用,也是详情查询的入口。
关键参数:
hospitalName:医院名称关键词,支持模糊搜索,例如“协和”。hospitalType:医院性质,例如“公立”或“民营”。hospitalLevel:医院等级,例如“三甲”“二甲”“三级”。hospitalProfessionalType:专业类型,例如“综合医院”“儿童医院”。hospitalProvince:所在省份筛选值,使用“北京”“广东”等短名,不带“省”“市”后缀。pageIndex:从 1 开始;pageSize默认 10、最大 50。
返回说明:返回医院名称、等级、性质、专业类型、地区、院区、科室和运营主体等摘要。后续详情查询使用结果中的 hospitalId。
2. medical_hospital_detail
何时使用:已经通过搜索确认医院,需要查看完整院区、联系方式、科室或医院介绍时使用。
关键参数:
hospitalId:必填,必须来自medical_hospital_search的结果。
返回说明:命中时返回单条医院详情,包括院区地址、联系电话、科室、详细介绍和运营主体。
使用示例
示例一:搜索医院
用户问题:
搜索北京的三甲综合医院,先返回 5 家。
建议调用:
{
"tool": "medical_hospital_search",
"arguments": {
"hospitalLevel": "三甲",
"hospitalProfessionalType": "综合医院",
"hospitalProvince": "北京",
"pageIndex": 1,
"pageSize": 5
}
}示例二:查询医院详情
用户问题:
查看刚才确认医院的院区地址、联系电话和科室。
建议调用:
{
"tool": "medical_hospital_detail",
"arguments": {
"hospitalId": "从医院搜索结果取得"
}
}使用注意事项
搜索结果可能包含名称相近的不同医院,必须先核对地区和医院等级。
hospitalId只能来自医院搜索结果。空结果是合法业务结果,可减少筛选条件后再次搜索。
测试验证
python -m py_compile server/mcp_server.py
python -m unittest discover -s tests -v单元测试使用 Mock 响应;真实验证通过本地 .env 调用 HandaaS Integrator Gateway。
This server cannot be installed
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
- AlicenseNot gradedqualityDmaintenanceEnables medical symptom guidance and disease consultation through the Zydsoft API. Provides disease diagnosis guidance and access to lists of medical conditions and departments.842MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying of Chinese-Western medicine interactions with comprehensive drug information, risk assessment, and clinical recommendations. Supports searching medicines, checking interactions individually or in batches, and provides safety guidance with severity classifications.
- AlicenseBqualityDmaintenanceEnables searching and querying clinical trials from ClinicalTrials.gov with intelligent filtering for recruiting studies, geographic search, and detailed trial information including contacts and eligibility criteria.376MIT
- AlicenseAqualityAmaintenanceEnables medication reference workflows including drug search, dosing calculations, Taiwan regulatory lookups, hospital prescription helpers, and educational PK/DDI simulation.333Apache 2.0
Related MCP Connectors
NIH Clinical Tables: ICD-10/9, RxTerms, LOINC, NPI, conditions search. Keyless.
Look up US healthcare providers in the NPPES NPI registry and resolve NUCC specialty codes.
WHO ICD-10/ICD-11 diagnosis codes. Lookup, search, chapters via official WHO API.
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/handaas/medical-hospital-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server