HHS Open Payments MCP Server for Mastra AIGive Mastra AI instant access to 6 tools to Download Dataset, Get Dataset, List Datasets, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect HHS Open Payments through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this MCP Server for Mastra AI
The HHS Open Payments MCP Server for Mastra AI is a standout in the Government Public Data category — giving your AI agent 6 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"hhs-open-payments": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "HHS Open Payments Agent",
instructions:
"You help users interact with HHS Open Payments " +
"using 6 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with HHS Open Payments?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About HHS Open Payments MCP Server
Connect to the HHS Open Payments database to explore financial transparency in healthcare. This server allows you to query datasets, search for specific physicians or teaching hospitals, and analyze payments made by drug and device companies.
Mastra's agent abstraction provides a clean separation between LLM logic and HHS Open Payments tool infrastructure. Connect 6 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
What you can do
- Dataset Discovery — List all available Open Payments datasets and inspect their metadata, including column definitions and update timestamps.
- Physician & Hospital Search — Search for specific healthcare providers or teaching hospitals by name to find their associated records.
- Advanced Querying — Use Socrata Query Language (SoQL) to filter, sort, and limit data for precise financial analysis.
- Data Export — Download specific datasets in CSV, JSON, or XML formats for external processing or reporting.
- Metadata Inspection — Fetch detailed information about specific datasets to understand the underlying data structure.
The HHS Open Payments MCP Server exposes 6 tools through the Vinkius. Connect it to Mastra AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 6 HHS Open Payments tools available for Mastra AI
When Mastra AI connects to HHS Open Payments through Vinkius, your AI agent gets direct access to every tool listed below — spanning financial-transparency, healthcare-data, compliance, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Download dataset on HHS Open Payments
JSON is recommended for programmatic access. Download a specific Open Payments dataset
Get dataset on HHS Open Payments
Get metadata for a specific Open Payments dataset
List datasets on HHS Open Payments
List all available Open Payments datasets
Query dataset on HHS Open Payments
Query specific records within a dataset using SoQL
Search hospitals on HHS Open Payments
Search for specific teaching hospitals
Search physicians on HHS Open Payments
Search for specific physicians
Connect HHS Open Payments to Mastra AI via MCP
Follow these steps to wire HHS Open Payments into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the HHS Open Payments MCP Server
Mastra AI provides unique advantages when paired with HHS Open Payments through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add HHS Open Payments without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every HHS Open Payments tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
HHS Open Payments + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the HHS Open Payments MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query HHS Open Payments, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed HHS Open Payments as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query HHS Open Payments on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using HHS Open Payments tools alongside other MCP servers
Example Prompts for HHS Open Payments in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with HHS Open Payments immediately.
"List all available Open Payments datasets."
"Search for physicians named 'Gregory House' in the database."
"Query dataset pgaw-6u8r for payments in Florida where the amount is over $5,000."
Troubleshooting HHS Open Payments MCP Server with Mastra AI
Common issues when connecting HHS Open Payments to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpHHS Open Payments + Mastra AI FAQ
Common questions about integrating HHS Open Payments MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Explore More MCP Servers
View all →
Crafter CMS
10 toolsManage headless content via Crafter CMS — execute GraphQL queries, write Git-based XML content, and publish to delivery engines directly from any AI agent.

CBRE Econometric Advisors (EA)
8 toolsAccess global real estate market data via CBRE EA — track rents, vacancy rates, and market forecasts directly from any AI agent.

Eventbrite
10 toolsEquip your AI agent to manage events, track attendees, and monitor ticket orders via the Eventbrite API.

Namely
10 toolsManage HRIS data via Namely — track employee profiles, job info, and organization groups directly from your AI agent.
