How to Use the Harvard WHO Health MCP in Mastra AI
Build resilient backend workflows that analyze WHO health data using Mastra AI's fault-tolerant agent framework.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Harvard WHO Health MCP to Mastra AI
Create your Vinkius account to connect Harvard WHO Health to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate Public Health Reporting
Set up a workflow that runs on a schedule to gather fresh health data. Your Mastra AI agent can call `get_countries`, then loop through the list to pull the latest numbers for `get_malaria` and `get_tuberculosis` for each one. If a request to the underlying WHO API fails, Mastra's engine automatically retries with exponential backoff. This means your data gathering jobs actually finish instead of failing due to a transient network blip. It's built for jobs that can't fail.
Build Conditional Alert Systems
Your agent can do more than just fetch data; it can make decisions. Create a workflow that regularly checks `get_mortality` for a specific cause in a key country. If the number crosses a threshold you define, the workflow can branch. From there, it could trigger other tools to gather context—like `get_health_workforce` or `get_health_expenditure`—before formatting a detailed notification and sending it to a Slack channel or logging a ticket. Mastra handles the if/then logic for you.
Resilient Data Extraction with this MCP Server
Stop writing custom retry logic for data extraction scripts. Use a Mastra AI workflow to pull a large set of indicators using `get_indicator_data`. The agent will systematically work through the list, and the built-in workflow engine handles any API rate limits or connection drops. This is perfect for back-office tasks like populating a data warehouse or generating a weekly analytical report. You define the steps, and Mastra ensures the process runs to completion, handling failures gracefully along the way.
Set up Harvard WHO Health MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Harvard WHO Health tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "harvard-who-health-mcp-client",
servers: {
"harvard-who-health-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Harvard WHO Health Agent",
model: openai("gpt-4o"),
instructions: "You have access to Harvard WHO Health tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Harvard WHO Health transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by WHO GHO. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Harvard WHO Health MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Harvard WHO Health MCP today
We host it, we monitor it, we maintain it. You just paste one token.