Patient Data Server
БесплатноНе проверенEnables querying a synthetic patient dataset with tools to look up patients by ID, age, disease, name, and get statistics, connecting Claude Desktop to local da
Описание
Enables querying a synthetic patient dataset with tools to look up patients by ID, age, disease, name, and get statistics, connecting Claude Desktop to local data.
README
Welcome to the Patient Data MCP (Model Context Protocol) Server project! 🚀
This is a beginner-friendly project showing how to connect Claude Desktop to your own local Python data sources. It lets you chat with a synthetic patient dataset containing 200 health records. 🧑⚕️📊
If you are a student or developer wanting to learn how to bridge LLMs with real-world databases, this is a perfect starting point! 💡
🛠️ Features
This server currently provides 6 powerful tools to Claude:
- 🔍
get_patient_by_id— Look up a specific patient record. - 🎂
list_patients_above_age— Find older patients based on an age threshold. - 🦠
find_patients_by_disease— Search for patients by their diagnosis (e.g., Asthma, Diabetes). - 📋
list_all_diseases— See all unique diseases present in the dataset. - 👤
search_patients_by_name— Quickly find someone by their partial or full name. - 📈
get_patient_statistics— Receive a beautiful statistical breakdown of the dataset.
🖥️ Getting Started
1️⃣ Prerequisites
You will need a few things installed on your machine:
- Python 3.10+ (🐍)
- uv (⚡ A blazing fast Python package runner). Install it via terminal:
- macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh - Windows:
irm https://astral.sh/uv/install.ps1 | iex
- macOS/Linux:
- Claude Desktop App (🤖)
2️⃣ Clone the Repository
Download the code to your computer:
git clone https://github.com/asanm11611622ubca006/First-MCP-server.git
cd First-MCP-server
(Optional) Run python generate_dataset.py if you ever want to regenerate the randomized patients.csv file!
3️⃣ Connect to Claude Desktop! 🔌
You don't need to run the server in your terminal. Claude will automatically run it in the background!
- Open your Claude Desktop config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
- Add the following JSON configuration. Make sure to update the
--directorypath to where you saved the code on your computer!
{
"mcpServers": {
"patient-data-server": {
"command": "uv",
"args": [
"--directory",
"YOUR_FULL_PATH_HERE\\First_MCP_server",
"run",
"patient_server.py"
]
}
}
}
(⚠️ Windows users: Remember to use double backslashes \\ in path names!)
4️⃣ Start Chatting! 💬
- Restart Claude Desktop (fully quit from the system tray and reopen).
- Look for the little 🔨 (Hammer) icon in the chat bar. You should see the
patient-data-serverfeatures loaded! - Try asking:
- "What are the most common diseases in the patient database?"
- "Can you find patients with Hypertension?"
- "Get patient by ID 42"
🌱 Learning & Contributing
This project is an awesome way to learn how the Model Context Protocol works. You can easily open patient_server.py and modify it.
Try adding a new tool to find patients by gender, or swap out the CSV parsing for an SQL database! 👩💻👨💻
Happy coding! 🎉
Установка Patient Data Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/asanm11611622ubca006/First-MCP-serverFAQ
Patient Data Server MCP бесплатный?
Да, Patient Data Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Patient Data Server?
Нет, Patient Data Server работает без API-ключей и переменных окружения.
Patient Data Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Patient Data Server в Claude Desktop, Claude Code или Cursor?
Открой Patient Data Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Patient Data Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
