MedX MCP Server
Provides AI-powered medical consultation and clinical decision support through diagnostic analysis and personalized healthcare recommendations using OpenAI integration.
README
MedX MCP Server
AI-powered clinical agentic platform featuring our MedX-powered AI Agents and HealthOS, delivering advanced diagnostic support and personalized healthcare.
Overview
The MedX MCP Server provides a RESTful API for AI agents to access medical AI capabilities. It supports:
- Advanced diagnostic support
- Personalized healthcare recommendations
- Clinical decision support
- AI-powered medical consultations
Features
- ✅ RESTful API with Server-Sent Events (SSE) streaming
- ✅ Asynchronous tool execution
- ✅ Session management for conversations
- ✅ Idempotent requests
- ✅ Tool cancellation
- ✅ Health and readiness checks
Quick Start
Server Setup
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export OPENAI_API_KEY="your-openai-key"
export MCP_SERVER_TOKEN="your-secret-token"
# Run server
python main.py
Server runs on http://localhost:8000 by default.
Client Usage
from client import MCPClient
# Initialize client
client = MCPClient(
base_url="http://localhost:8000",
auth_token="your-token"
)
# Discover capabilities
manifest = await client.discover()
print(manifest['description'])
# Call (simplified)
result = await client.call(
messages=[{"role": "user", "content": "What is anemia?"}]
)
Documentation
- CLIENT_USAGE_GUIDE.md - Complete client usage guide
- API_DOCUMENTATION.md - Full API reference
- API_QUICK_REFERENCE.md - Quick API cheat sheet
- AGENT_INTEGRATION_GUIDE.md - How agents integrate with MCP server
- ARCHITECTURE_EXPLANATION.md - Server architecture details
Client SDK
The project includes a Python client SDK in the client/ directory:
# Install client dependencies
pip install -r client/requirements.txt
# Use in your code
from client import MCPClient
See CLIENT_USAGE_GUIDE.md for complete examples.
Examples
examples/simple_client_example.py- Basic client usageexamples/langchain_integration_example.py- LangChain agent integration
API Endpoints
GET /mcp/manifest- Discover server capabilities and toolsPOST /mcp/execute- Execute a toolGET /mcp/stream/{call_id}- Stream resultsPOST /mcp/cancel/{call_id}- Cancel a callGET /healthz- Health checkGET /readyz- Readiness check
Configuration
Environment variables:
OPENAI_API_KEY- OpenAI API key (required)MCP_SERVER_TOKEN- Bearer token for authentication (default: "super-secret-token")SERVER_HOST- Server host (default: "0.0.0.0")SERVER_PORT- Server port (default: 8000)
License
[Add your license here]
Support
For issues and questions, see the documentation files or create an issue.
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.