Healthcare Data Quality MCP Server
Enables MCP-compatible AI clients to validate healthcare claims data quality by running completeness, integrity, and temporal checks on CSV files via five callable tools, including profiling and full scans.
README
Healthcare Data Quality MCP Server
An MCP (Model Context Protocol) server that exposes healthcare data quality validation as tools any MCP-compatible AI client — Claude Desktop, Claude Code, or Cowork — can call directly in conversation.
This wraps the rule logic from the Healthcare Data Quality & Governance Agent skill — all four quality dimensions (completeness, integrity, consistency, temporal accuracy) across five CMS/claims-adjacent data types — as callable tools, so instead of pasting data into a chat and asking for a report, an AI assistant can run the checks itself against a real file.
The rule logic and severity scoring live here as tested, versioned code. Turning the structured findings into the CDO-facing governance report (plain-English explanations, executive summary, PDF) stays a job for the skill/prompt layer, which consumes this server's JSON output.
Supported data types
inpatient, outpatient, carrier, pharmacy, ehr, population_health
— see rules/schema.py for the exact required fields and identifiers
per type.
What it does
profile_dataset— row/column counts, columns detected, sample rows, and a best-guess data type (confirm before running checks)check_completeness— flags required fields that are null, blank, or placeholder values, with severity scoring (Critical / High / Medium / Note)check_integrity— flags duplicate claim IDs, malformed provider NPIs, invalid ICD-9/ICD-10 diagnosis code formats, invalid beneficiary IDs, and payment amount anomaliescheck_consistency— flags mixed date formats and CMS code-set violations (gender, race, state FIPS, claim type, chronic condition flags)check_temporal— flags illogical date sequences (discharge before admission, service after death), future-dated records, implausible ages, and length-of-stay anomaliesrun_full_quality_scan— runs all four dimensions and returns a severity-scored, prioritised summary with AI readiness signals
Every dimension tool (except profile_dataset) takes filename and
data_type.
Setup
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run it standalone (no MCP client needed)
python3 -c "
import rules, json
df = rules.load_csv('sample_data/claims.csv')
print(json.dumps(rules.run_full_scan(df, 'outpatient'), indent=2))
"
Other sample files: inpatient_sample.csv, carrier_sample.csv,
pharmacy_sample.csv, ehr_sample.csv, population_health_sample.csv
— each paired with its matching data type.
Connect it to Claude Desktop
- Open your Claude Desktop config file (
claude_desktop_config.json). - Add an entry like the one in
claude_desktop_config.example.json, updating the path to the absolute path ofserver.pyon your machine. - Restart Claude Desktop.
- Ask Claude something like: "Run a full quality scan on claims.csv as outpatient claims data" — Claude will call the tool, run the checks, and summarize the findings.
Notes on the SDK
This was built against mcp==2.0.0, which uses mcp.server.MCPServer as
the high-level server class. Some older tutorials reference
mcp.server.fastmcp.FastMCP under the same name — the @mcp.tool()
decorator API is identical either way; only the import path and class
name differ by SDK version.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.