[δΈ­ζ–‡](./README.md) | **English** # @baichuan-ai/baixiaoying-mcp-server [![npm version](https://img.shields.io/npm/v/@baichuan-ai/baixiaoying-mcp-server.svg)](https://www.npmjs.com/package/@baichuan-ai/baixiaoying-mcp-server) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/baichuan-inc/baichuan-mcp-servers/blob/main/LICENSE.txt) [![MCP Apps](https://img.shields.io/badge/MCP-Apps%20Supported-brightgreen.svg)](https://modelcontextprotocol.io/docs/extensions/apps) BaiXiaoYing Medical LLM MCP Server β€” Supports the **latest MCP protocol feature [MCP Apps](https://modelcontextprotocol.io/docs/extensions/apps)**, providing visual response content that fully matches the official Baichuan APP [BaiXiaoYing](https://ying.ai/). ![Baichuan-M3-Plus](https://raw.githubusercontent.com/baichuan-inc/baichuan-mcp-servers/main/packages/baixiaoying-mcp-server/src/ui/assets/m3-plus-banner.png) ## Why Choose BaiXiaoYing MCP Server? ### πŸ† SOTA Medical LLM Baichuan-M3-Plus is Baichuan AI's **lowest hallucination evidence-enhanced medical large language model**, with excellent performance in authoritative medical evaluations: | Metric | Performance | | ---------------------- | -------------------------------------------------------------------------------------------------- | | **Hallucination Rate** | Only **2.6%** in benchmark tests, significantly leading the industry | | **HealthBench** | Surpasses OpenAI GPT-5.2, achieving SOTA | | **HealthBench-Hard** | Score of 44.4, exceeding GPT-5.2 | | **SCAN-bench** | The only model ranking first in Clinical Inquiry, Laboratory Testing, and Diagnosis simultaneously | | **Cost** | **70% reduction** compared to the previous generation model | ### 🧬 Core Technical Advantages - **Six-Source Evidence System** - Pioneering evidence anchoring technology for rigorous and traceable answers, effectively suppressing hallucinations - **Clinical Inquiry Mindset** - Model fundamentally possesses clinical physicians' inquiry and evidence-based thinking, supporting SCAN-Driven Clinical-Grade Systematic History Taking - **High-Fidelity Clinical Inquiry** - Reconstructs the inquiry process into a clinical-grade, structured, and auditable information generation pipeline ### 🧩 MCP Apps Protocol Supports the latest MCP protocol **MCP Apps**, outputting visual content that is fully aligned with the official BaiXiaoYing APP: ![BaiXiaoYing Visual Response Example](https://raw.githubusercontent.com/baichuan-inc/baichuan-mcp-servers/main/packages/baixiaoying-mcp-server/src/ui/assets/baixiaoying-screenshot-1.png) ![BaiXiaoYing Evidence and Citation Example](https://raw.githubusercontent.com/baichuan-inc/baichuan-mcp-servers/main/packages/baixiaoying-mcp-server/src/ui/assets/baixiaoying-screenshot-2.png) ## Features - πŸ–₯️ **Visual Responses** - Output visual content aligned with the official BaiXiaoYing APP - 🩺 **Medical Q&A Dialogue** - Use professional medical LLM to answer health-related questions - πŸ“„ **Document Q&A** - Upload medical documents for intelligent Q&A - πŸ“š **Evidence Citations** - Answers include professional literature citations - 🧠 **Thinking Process** - Display the model's reasoning steps - πŸ”Œ **Multi-Protocol Support** - Supports stdio, SSE, Streamable HTTP, and Hybrid transport modes - πŸš€ **Server Deployment** - Can be deployed as an HTTP service for multi-client access ## πŸ“‹ Application Scenarios BaiXiaoYing is powered by an **authoritative medical knowledge base** that encompasses clinical guidelines, drug information, medical literature, and other comprehensive authoritative data sources, with continuous dynamic updates. Whether for daily consultations, clinical decision-making, or medical research, it provides the most reliable and trustworthy professional answers. ### 🩺 Intelligent Consultation Simulates clinical physicians' diagnostic thinking for systematic medical history collection and symptom analysis. ``` I've been feeling dizzy lately, especially when I wake up in the morning. When I stand up, my vision goes black for a few seconds. Can you help me analyze the possible causes? ``` ``` My 3-year-old child started having a fever of 38.5Β°C yesterday, with runny nose and slight cough. The child's spirits seem okay. Do we need to go to the hospital? ``` ### πŸ’Š Drug Analysis In-depth analysis of drug components, mechanisms of action, indications, and adverse reactions. ``` Can you explain the difference between aspirin and ibuprofen? How do their mechanisms of action differ? ``` ``` What is the mechanism of action of metformin? Why is it considered the first-line medication for type 2 diabetes? ``` ### πŸ’‰ Medication Guidance Provides professional medication advice including dosage, administration, precautions, and drug interactions. ``` I'm currently taking warfarin, and my doctor also prescribed amoxicillin. Can I take these two medications together? What should I be aware of? ``` ``` What precautions should elderly hypertension patients taking long-term amlodipine be aware of? ``` ### πŸ“– Guideline Queries Quickly retrieve the latest clinical practice guidelines and authoritative recommendations. ``` What are the diagnostic criteria and classification standards for hypertension according to the 2024 Chinese Hypertension Prevention and Treatment Guidelines? ``` ``` What are the recommended first-line hypoglycemic agents in the latest clinical practice guidelines for diabetic nephropathy? ``` ### πŸ₯ Treatment Plans Provides personalized treatment plan recommendations based on evidence-based medicine. ``` A newly diagnosed type 2 diabetes patient with fasting blood glucose of 9.2mmol/L, HbA1c of 8.1%, BMI of 26, and no obvious complications. How should the treatment plan be formulated? ``` ``` What are the options for empirical antimicrobial therapy for community-acquired pneumonia? ``` ### πŸ”¬ Diagnostic Analysis Assists in analyzing laboratory and examination results, providing differential diagnosis approaches. ``` A patient's liver function test shows ALT 156 U/L, AST 89 U/L, with normal GGT. Please help analyze the possible causes and what further tests are needed. ``` ``` Thyroid function test shows low TSH and high FT4. What does this indicate? What further examinations are needed? ``` ### πŸ“š Medical Research Updates Track the latest research progress and breakthrough achievements in the medical field. ``` What are the latest research developments on GLP-1 receptor agonists in cardiovascular protection? ``` ``` What are the latest research breakthroughs in CAR-T cell therapy for solid tumor treatment? ``` ### ✍️ Medical Writing Assistance Assists with medical paper writing, medical record documentation, medical translation, and other professional documentation tasks. ``` Help me write a template for an acute myocardial infarction admission medical record, including chief complaint, history of present illness, past medical history, and other elements. ``` ``` Please help me translate this clinical research abstract into standard medical English. ``` ## 🎁 Hainabaichuan Program ![Hainabaichuan Program](https://raw.githubusercontent.com/baichuan-inc/baichuan-mcp-servers/main/packages/baixiaoying-mcp-server/src/ui/assets/hainabaichuan-plan.png) Baichuan has officially launched the "Hainabaichuan" program, **providing free evidence-enhanced M3-Plus API to all institutions serving medical professionals**. ### Eligibility | Item | Description | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Target Users** | Institutions serving medical professionals (doctors, pharmacists, technicians, nurses, health managers, medical students, etc.) | | **Use Cases** | Clinical decision support, medical education | | **Restrictions** | For genuine service scenarios only, not for data production | | **Requirements** | Products must clearly display "Powered by Baichuan", no modifications affecting output accuracy | πŸ‘‰ [Apply Now](https://www.baichuan-ai.com/home) ## Supported Models | Model | Description | | ---------------- | ------------------------------- | | Baichuan-M3-Plus | Latest medical LLM, recommended | | Baichuan-M2-Plus | Medical LLM | ## Academic & Resources - 🏠 **Baichuan Website**: https://www.baichuan-ai.com/home - πŸ“– **Academic Report**: https://www.baichuan-ai.com/blog/baichuan-M3 - πŸ’» **M3 Github**: https://github.com/baichuan-inc/Baichuan-M3-235B - πŸ€— **M3 Model**: https://huggingface.co/baichuan-inc/Baichuan-M3-235B - ⚑ **M3 GPTQ-4bit**: https://huggingface.co/baichuan-inc/Baichuan-M3-235B-GPTQ-INT4 ## Quick Start ### Prerequisites Obtain an API Key from the [Baichuan Platform](https://platform.baichuan-ai.com/). ### Option 1: One-Click Install (Recommended) Each GitHub Release includes `.dxt` and `.mcpb` installers β€” **double-click to install**, no command line required. | Format | Description | Supported Clients | | ------ | ----------- | ----------------- | | `.dxt` | Desktop Extension, Cursor's MCP extension format | Cursor | | `.mcpb` | [MCP Bundle](https://github.com/modelcontextprotocol/mcpb), the official MCP standard packaging format β€” similar to Chrome extensions (.crx), bundles an MCP Server with its dependencies into a directly installable ZIP archive | Claude Desktop, Claude Code | Go to [GitHub Releases](https://github.com/baichuan-inc/baichuan-mcp-servers/releases) to download the latest installers. ### Option 2: Official SSE Service (Zero Deployment) Baichuan provides an officially hosted SSE service β€” no local installation or deployment needed, just configure your client. **Cursor** β€” Add to `~/.cursor/mcp.json`: ```json { "mcpServers": { "baixiaoying": { "type": "sse", "url": "https://baixiaoying-mcp-server.baichuan-ai.com/sse", "headers": { "Authorization": "Bearer your-baichuan-api-key" } } } } ``` > Replace `your-baichuan-api-key` with your Baichuan API Key. ### Option 3: npx Quick Start For Claude Desktop and other stdio-mode clients, add to `claude_desktop_config.json`: ```json { "mcpServers": { "baixiaoying": { "command": "npx", "args": ["-y", "@baichuan-ai/baixiaoying-mcp-server"], "env": { "BAICHUAN_API_KEY": "your-api-key-here" } } } } ``` > For more installation options (npm install, server deployment, Docker, environment variables, etc.), see the [Development Guide](https://github.com/baichuan-inc/baichuan-mcp-servers/blob/main/packages/baixiaoying-mcp-server/docs/development_en.md). ## Available Tools > For detailed documentation, see [Available Tools](https://github.com/baichuan-inc/baichuan-mcp-servers/blob/main/packages/baixiaoying-mcp-server/docs/tools_en.md) | Tool | Description | |------|-------------| | `baixiaoying_chat` | Medical Q&A dialogue using BaiXiaoYing LLM | | `baixiaoying_upload_file` | Upload medical documents for document Q&A | | `baixiaoying_list_files` | Get the list of uploaded files | | `baixiaoying_get_file_status` | Query file parsing status | | `baixiaoying_delete_file` | Delete uploaded files | ## Usage Examples ### Basic Dialogue ``` Ask BaiXiaoYing: What should hypertension patients pay attention to in daily life? ``` ### Document Q&A ``` 1. First upload the document 2. Query file status, wait until it becomes online 3. Use baixiaoying_chat tool with file_ids parameter for Q&A ``` ## Development > For detailed documentation, see [Development Guide](https://github.com/baichuan-inc/baichuan-mcp-servers/blob/main/packages/baixiaoying-mcp-server/docs/development_en.md) ## Security Deployment > For detailed documentation, see [Security Deployment Guide](https://github.com/baichuan-inc/baichuan-mcp-servers/blob/main/packages/baixiaoying-mcp-server/docs/security-deployment.md) (includes Nginx reverse proxy configuration, rate limiting, security-related environment variables, etc.) ## License [Apache License 2.0](./LICENSE.txt)