π₯
Medical Agent Fastmcp
Medical Document Analysis MCP Server for FastMCP Cloud - AI-powered medical analysis with Stripe payment integration
0 installs
Trust: 34 β Low
Healthcare
Ask AI about Medical Agent Fastmcp
Powered by Claude Β· Grounded in docs
I know everything about Medical Agent Fastmcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
Medical Agent MCP Server
π₯ Production-ready medical document analysis platform powered by Claude Sonnet 4 and deployed on FastMCP Cloud.
π Live Deployment
FastMCP Cloud Server: https://medical-agent-server.fastmcp.app/mcp
β¨ Features
- π§ AI-Powered Analysis: Claude Sonnet 4 + GPT-4o fallback
- π³ Stripe Payment Integration: Live billing with multiple tiers
- π HIPAA-Compliant Processing: Secure medical data handling
- π Multi-Tier Analysis: Basic ($0.10), Comprehensive ($0.50), Batch ($0.05)
- π Cross-Platform Integration: Claude Desktop, Cursor IDE, Gemini CLI compatible
- β‘ FastMCP Cloud: Enterprise-grade deployment and scaling
π€ AI Models
- Primary: Claude Sonnet 4.5 (
claude-sonnet-4-5-20250929) - Fallback: OpenAI GPT-4o (
gpt-4o) - Analysis Types: Basic extraction, comprehensive insights, batch processing
- Token Tracking: Real-time usage monitoring for accurate billing
π Available Tools
π₯ Medical Analysis
analyze_medical_document- AI-powered document analysis using latest LLM modelsget_patient_summary- Retrieve structured patient informationget_available_services- Service catalog with pricing and features
π° Billing & Payment
calculate_billing- Multi-tier pricing with volume discountscreate_customer- Stripe customer managementcreate_payment_intent- Secure payment processingconfirm_payment- Payment verification and statusprocess_paid_analysis- Complete end-to-end paid workflowget_customer_info- Customer billing history and details
π§ System
health_check- Server monitoring and API status validation
π Integration
Claude Desktop
claude mcp add --scope local --transport http Medical-agent-server https://medical-agent-server.fastmcp.app/mcp
Claude Code
claude mcp add Medical-agent-server https://medical-agent-server.fastmcp.app/mcp
Cursor IDE
{
"servers": {
"medical-agent": {
"command": "mcp",
"args": ["--transport", "http", "https://medical-agent-server.fastmcp.app/mcp"]
}
}
}
ποΈ Local Development
Prerequisites
- Python 3.12+
- Virtual environment
- API keys for Anthropic and/or OpenAI
Setup
# Clone repository
git clone https://github.com/sbayer2/medical-agent-fastmcp
cd medical-agent-fastmcp
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Configure environment variables
cp .env.template .env
# Edit .env with your API keys
Environment Variables
ANTHROPIC_API_KEY=sk-ant-api03-your_key_here
OPENAI_API_KEY=sk-proj-your_key_here
STRIPE_API_KEY=sk_live_your_key_here
Testing
# Test AI functionality
python3 test_medical_server.py
# Test OpenAI fallback
python3 test_openai_fallback.py
# Import verification
python3 -c "from medical_mcp_server import mcp; print('β
Server ready')"
π Usage Examples
Medical Document Analysis
# Basic analysis - $0.10
analyze_medical_document(
document_content="SOAP NOTE: Patient presents with chest pain...",
analysis_type="basic",
patient_id="patient_001"
)
# Comprehensive analysis - $0.50
analyze_medical_document(
document_content="Complex medical case with multiple conditions...",
analysis_type="comprehensive",
patient_id="patient_002"
)
Payment Processing
# Create customer
customer = create_customer(
email="dr.smith@clinic.com",
name="Dr. Jennifer Smith"
)
# Process payment
payment = create_payment_intent(
customer_id=customer["customer_id"],
analysis_type="comprehensive",
document_count=1
)
π Billing Tiers
| Tier | Price | Description | Features |
|---|---|---|---|
| Basic | $0.10 | Essential analysis | Vital signs, medications, conditions |
| Comprehensive | $0.50 | Full clinical insights | Risk assessment, recommendations, follow-up |
| Batch | $0.05 | Volume processing | Bulk analysis with enterprise discounts |
Volume Discounts:
- 10+ documents: 10% discount
- Enterprise customers: Additional 15% discount
π§ Technical Specifications
- Framework: FastMCP 2.2.6+
- Language: Python 3.12
- Deployment: FastMCP Cloud
- Payment Processing: Stripe Live API
- AI Providers: Anthropic API, OpenAI API
- Protocol: Model Context Protocol (MCP)
π Performance
- Response Time: < 2 seconds for document analysis
- Availability: 99.9% uptime SLA via FastMCP Cloud
- Scalability: Auto-scaling based on request volume
- Token Efficiency: Optimized prompts for cost-effective analysis
π‘οΈ Security & Compliance
- HIPAA Compliant: Secure medical data processing
- PHI Protection: No data persistence or logging of medical content
- API Security: TLS encryption for all communications
- Payment Security: PCI DSS compliant via Stripe
π Documentation
- API Reference: Available through FastMCP Cloud dashboard
- Integration Guide: See
CLAUDE.mdfor detailed setup - Development Story: Read our Medium article for implementation details
π€ Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Links
- Live Server: https://medical-agent-server.fastmcp.app/mcp
- FastMCP Cloud: https://fastmcp.app
- Model Context Protocol: https://modelcontextprotocol.io
- Claude Desktop: https://claude.ai/desktop
- Cursor IDE: https://cursor.sh
π Support
For issues, questions, or feature requests:
- Create an issue on GitHub
- Check server health:
https://medical-agent-server.fastmcp.app/health - Review FastMCP Cloud logs for deployment issues
Built with β€οΈ for healthcare professionals using Claude Sonnet 4 and FastMCP Cloud
