Medical MCP Server
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., "@Medical MCP ServerCheck interaction between aspirin and ibuprofen"
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.
Medical MCP Server
A Model Context Protocol (MCP) server that provides medical information tools powered by Grok AI. Works with Claude Desktop, Claude Code, and any other MCP-compatible client.
Disclaimer: This server is for EDUCATIONAL PURPOSES ONLY. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare professional for medical concerns.
Table of Contents
Related MCP server: MedData MCP Server
Features
Medication Information — Uses, dosage, side effects, and warnings
Drug Interaction Checker — Identify potential interactions between two medications
Medical Term Definitions — Plain-language explanations of medical terminology
General Medical Q&A — Powered by Grok AI for open-ended questions
Interactive CLI — Terminal-based client with conversation memory and colored output
Claude Desktop Integration — Plug in as an MCP server for seamless AI-assisted queries
Hybrid Knowledge Base — Fast local lookups + Grok AI fallback for unknown queries
Safety First — Every response includes a medical disclaimer
Architecture
┌──────────────────────────────────────────────────────┐
│ User / MCP Client │
│ (Claude Desktop · CLI · etc.) │
└───────────────────────┬──────────────────────────────┘
│ stdio
▼
┌──────────────────────────────────────────────────────┐
│ MCP Server (index.js) │
│ │
│ ┌─────────────────────┐ ┌──────────────────────┐ │
│ │ Local Knowledge DB │ │ Grok AI API │ │
│ │ (medications, │──▶│ (fallback for │ │
│ │ interactions, │ │ unknown queries) │ │
│ │ terminology) │ └──────────────────────┘ │
│ └─────────────────────┘ │
│ │
│ Tools: get_medication_info · check_drug_interaction │
│ define_medical_term · ask_medical_question │
└──────────────────────────────────────────────────────┘Prerequisites
Requirement | Version |
v18 or higher | |
Free tier available |
Installation
# 1. Clone the repository
git clone https://github.com/your-username/medical-mcp-server.git
cd medical-mcp-server
# 2. Install dependencies
npm installConfiguration
1. Create your .env file
cp .env.example .env2. Add your Grok API key
Open .env and fill in:
GROK_API_KEY=your_grok_api_key_here
GROK_API_BASE_URL=https://api.x.ai/v1 # optional, this is the defaultGetting a Grok API key:
Visit https://console.x.ai/
Sign in with your X (Twitter) account
Go to API Keys → Create new key
Copy it immediately (it won't be shown again)
Usage
CLI (Interactive Mode)
Run the interactive terminal client — no MCP client needed:
npm run cliExample session:
You: What is aspirin used for?
Assistant: Aspirin (Acetylsalicylic acid) is used for pain relief, fever reduction,
and as a blood thinner... [Medical Disclaimer: ...]
You: Check interactions between aspirin and ibuprofen
Assistant: ⚠️ Interaction found: Concurrent use may increase the risk of gastrointestinal
bleeding...
You: /help ← type /help to see available commands
You: /exit ← exits the clientClaude Desktop Integration
Add the server to your Claude Desktop config file:
Windows → %APPDATA%\Claude\claude_desktop_config.json
macOS/Linux → ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"medical": {
"command": "node",
"args": ["/absolute/path/to/medical-mcp-server/index.js"]
}
}
}Replace
/absolute/path/to/medical-mcp-server/index.jswith the actual path on your machine.
After saving:
Restart Claude Desktop
Look for the plug icon (🔌) to confirm the server is connected
Start asking medical questions in your Claude conversations
Available Tools
Tool | Description |
| Detailed medication info — uses, dosage, side effects, warnings |
| Checks for interactions between two medications |
| Plain-English definitions of medical terminology |
| General medical Q&A via Grok AI |
Example prompts (in Claude Desktop or CLI)
Can you get information about metformin?
Check if there are any interactions between aspirin and warfarin.
What does tachycardia mean?
What are the common symptoms of dehydration?Available Resources
URI | Description |
| Lists all medications in the built-in knowledge base |
| Full medical disclaimer text |
Built-in Knowledge Base
The server ships with pre-loaded data so common queries are answered instantly without an API call:
Medications: Aspirin · Ibuprofen · Metformin
Drug Interactions: Aspirin–Ibuprofen · Aspirin–Warfarin · Metformin–Alcohol
Medical Terms: Hypertension · Diabetes · Tachycardia · Hypotension
All other queries fall back to Grok AI automatically.
Project Structure
medical-mcp-server/
├── index.js # MCP server — tools, resources, Grok integration
├── cli.js # Interactive CLI client
├── package.json # Dependencies and npm scripts
├── .env.example # Environment variable template
├── .gitignore # Ignores node_modules, .env, logs
├── QUICKSTART.md # 5-minute setup guide
└── README.md # This fileExtending the Server
All extension points are in index.js:
Add a new medication to the knowledge base:
MEDICAL_DATA.medications["drug-name"] = {
name: "Drug Name",
generic_name: "...",
uses: [...],
dosage: "...",
side_effects: [...],
warnings: [...],
};Add a new tool:
Add the tool definition inside the
ListToolsRequestSchemahandlerAdd the handler logic inside the
CallToolRequestSchemahandler
Add a new resource:
Register the URI in
ListResourcesRequestSchemaHandle the URI in
ReadResourceRequestSchema
Troubleshooting
Problem | Solution |
| Check that |
Server not showing in Claude Desktop | Verify the path in config is absolute and correct, then restart Claude Desktop |
API rate limit errors | Grok API limits depend on your plan — consider caching frequent queries |
CLI won't start | Ensure Node.js v18+ is installed ( |
Acknowledgments
Model Context Protocol SDK — MCP protocol implementation
Grok AI by X.AI — AI backend for medical queries
Medical data is for educational purposes only and does not replace professional medical advice
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.
Latest Blog Posts
- 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/tejaswiv2304/-Medical-Mcp-server-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server