dhis2-mcp
dhis2-mcp
一个用于读取 DHIS2 健康数据的只读 MCP 服务器。它通过 stdio 运行。
该服务器专为小型本地模型而设计。每个工具返回紧凑的 JSON,而不是原始 DHIS2 响应。小的上下文窗口是一种预算,而这些工具会尽量少地占用它。
工具
工具 | 功能 |
| 按名称搜索 DHIS2 指标。返回 id、名称和描述。 |
| 获取一个指标按期间拆分、针对一个组织单元的汇总值。 |
先运行 search_indicators 获取指标 id。然后再将该 id 传给 query_analytics。
Related MCP server: WHO MCP Server
要求
Node.js 20 或更高版本。
一个 DHIS2 实例。默认使用公共 play demo,因此无需任何配置即可开始。
安装与构建
git clone https://github.com/brianmituka/dhis2-mcp.git
cd dhis2-mcp
npm install
npm run build配置
设置以下环境变量。这三个都可选。
变量 | 默认值 | 含义 |
|
| DHIS2 实例的基础 URL |
|
| Basic auth 用户名 |
|
| Basic auth 密码 |
play demo 每晚都会重置。请使用主机 play.im.dhis2.org,而不是 play.dhis2.org——旧主机地址会重定向到 HTML 页面。
与 LM Studio 配合使用
LM Studio 0.3.17 或更高版本支持 MCP。请打开 Program 标签页,然后编辑 mcp.json。添加以下条目:
{
"mcpServers": {
"dhis2": {
"command": "node",
"args": ["/absolute/path/to/dhis2-mcp/dist/index.js"],
"env": {
"DHIS2_BASE_URL": "https://play.im.dhis2.org/stable-2-43-1",
"DHIS2_USERNAME": "admin",
"DHIS2_PASSWORD": "district"
}
}
}
}将路径替换为你克隆的位置。编辑文件后,重启模型聊天。
与其他 MCP 客户端配合使用
任何基于 stdio 的 MCP 客户端都可以使用。例如,在 Claude Code 中:
claude mcp add dhis2 -- node /absolute/path/to/dhis2-mcp/dist/index.js使用 MCP Inspector 测试
npx @modelcontextprotocol/inspector node dist/index.jsInspector 在重新构建之后不会重新加载服务器。每次 npm run build 之后,请在 Inspector 中点击 Restart。
许可证
MIT. 请参阅 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
- AlicenseBqualityFmaintenanceEnables comprehensive interaction with DHIS2 health information systems through 40+ tools covering complete Web API functionality. Supports data management, tracker programs, analytics, and bulk operations for DHIS2 development and administration.47186MIT
- AlicenseBqualityDmaintenanceProvides access to the World Health Organization's Global Health Observatory data, enabling AI assistants to search, retrieve, and analyze comprehensive health indicators, country statistics, disease burden data, and regional health trends through WHO's OData API.1MIT

Data360 MCP Serverofficial
FlicenseNot gradedqualityCmaintenanceProvides LLM agents direct access to World Bank development indicators, enabling search, validation, and retrieval of data on topics like GDP, poverty, and gender equality.33- AlicenseAqualityCmaintenanceConnects DHIS2 health information systems to AI assistants via the Model Context Protocol, enabling natural language queries for analytics, metadata, and tracker data.13MIT
Related MCP Connectors
Query 29,500+ World Bank development indicators for 200+ countries across 60+ years.
OWID MCP — Our World in Data chart/indicator access (free, no auth)
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
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/brianmituka/dhis2-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server