Healthcare MCP Server
Provides tools for querying and analyzing patient records stored in a SQLite database, including schema retrieval, SELECT queries, patient risk summaries, and readmission risk summaries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Healthcare MCP ServerWhat is the risk profile of patient James Walker?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Healthcare MCP Server
A custom MCP (Model Context Protocol) server that lets an AI agent (Claude Desktop, or any MCP client) query a small patient-records SQLite database.
Project structure
healthcare-mcp-server/
├── server.py # MCP server - registers all tools, runs Streamable HTTP on port 8000
├── db.py # SQLite connection + CREATE TABLE statements
├── seed_data.py # Populates patients.db with sample data
├── requirements.txt
├── tools/
│ ├── schema.py # get_schema tool
│ ├── query.py # query_database tool (SELECT-only, guarded)
│ ├── risk.py # get_patient_risk_summary tool
│ └── readmission.py # get_readmission_risk_summary tool
└── patients.db # created after running db.py + seed_data.pyRelated MCP server: SQLite MCP Server
Tools exposed
Tool | What it does |
| Returns all table/column names so the agent can write correct SQL before it queries anything. |
| Runs an agent-generated SQL |
| Joins visits + labs + medications for one patient and produces a risk score/level with reasons. |
| Looks at visit frequency/spacing and diagnosis to estimate readmission risk. |
Setup
cd healthcare-mcp-server
pip install -r requirements.txt
# 1. Create the tables
python db.py
# 2. Populate sample data (safe to re-run)
python seed_data.py
# 3. Start the MCP server (Streamable HTTP on port 8000)
python server.pyThe server will be reachable at http://localhost:8000/mcp.
Connecting it to Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config.
Add an entry under
mcpServerspointing at your running server:
{
"mcpServers": {
"my-healthcare-server": {
"url": "http://localhost:8000/mcp"
}
}
}Save, fully quit and reopen Claude Desktop.
Click the + icon → your server should now be listed under connectors. Enable it, and Claude will be able to call the four tools above.
Example prompts to try
"Can you get me any 5 patient details?"
"What is the risk profile of the patient James Walker?"
"How many times has James Walker visited the hospital, and which doctors has he consulted?"
The last question needs a JOIN across visits and can't be answered without
the agent first calling get_schema to understand the table structure -
that's the point of exposing schema as its own tool.
Safety note
query_database only allows SELECT statements and blocks a short list of
destructive keywords (insert, update, delete, drop, alter,
attach). This is a minimal example guardrail, not a production-grade
solution - a real deployment would need parameterized queries, per-table
allow-lists, row limits, timeouts, and audit logging on top of this.
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
- Alicense-qualityDmaintenanceEnables LLM agents to perform complete database operations on SQLite databases, including creating tables, executing queries, and managing data through CRUD operations with schema inspection capabilities.473MIT
- Alicense-qualityCmaintenanceProvides comprehensive SQLite database interaction for AI agents, including data manipulation, schema inspection, and automated query logging. It features a unique context preservation pattern that uses a dedicated meta-table to help autonomous agents maintain self-documenting database architectures.4731MIT
- Flicense-qualityDmaintenanceEnables SQLite database interactions including querying, updating, and schema management through structured tools.3
- AlicenseAqualityCmaintenanceEnables safe, read-only SQL access to SQLite databases for AI agents, allowing schema exploration and SELECT queries with defense-in-depth protections.3MIT
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
45 AI data tools for agents — crypto, DeFi risk, audits, equities, energy, and more.
Physician-reviewed medical opinions and prescriptions for AI agents.
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/yashika306/Healthcare-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server