Medical Research Intelligence Assistant
An agentic RAG system for answering medical questions with PubMed citations. It combines Adaptive RAG (query routing) and Self-RAG (relevance grading, query rewriting, hallucination checks) in a pipeline.
Agenten stärken
Installation vom Herausgeber. Kein PlugMCP-Endpunkt.
Host a copy with our keys and logs.
Noch kein paketiertes Release in der Registry. Folgen Sie der README des Repositorys.
Remote-URL oder ein Befehl auf Ihrem Rechner? Worin sich die beiden Installationen unterscheiden
Auf PlugMCP ausführen
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
StartenVom Herausgeber
An agentic RAG system for answering medical questions with PubMed citations. It combines Adaptive RAG (query routing) and Self-RAG (relevance grading, query rewriting, hallucination checks) in a pipeline.
Medical Research Intelligence Assistant is an agentic RAG system that answers medical questions using PubMed literature with evidence-based citations. Built with LangGraph, it combines Adaptive RAG, Self-RAG, ChromaDB, and an MCP server to provide grounded responses for AI agents and developers.
Data source: PubMed abstracts
LLM: Mistral API
Embeddings: HuggingFace BAAI/bge-small-en-v1.5 (local, CPU)
Vector store: ChromaDB (local)
[PMID] citations and confidence scores
Visualize the graph:
python visualize_graph.py
medical_rag/
├── main.py # CLI entry point
├── requirements.txt
├── rag_graph.mmd # Mermaid graph definition
├── visualize_graph.py
├── data/ # ChromaDB persistence (gitignored)
└── src/
├── graph/
│ ├── graph.py # LangGraph definition
│ └── nodes.py # Pipeline nodes
├── rag/
│ ├── pubmed_fetcher.py
│ ├── vector_store.py
│ ├── retriever.py
│ ├── graders.py
│ └── generator.py
├── mcp/
│ └── server.py # MCP tools (SSE)
└── utils/
├── config.py
├── llm.py
├── ingest.py
├── state.py
└── http_ssl.py
python -m venv venv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root:
# Required
MISTRAL_API_KEY=your_mistral_api_key
[email protected]
# Optional
MISTRAL_MODEL=mistral-small-latest
EMBEDDING_MODEL=BAAI/bge-small-en-v1.5
CHROMA_PERSIST_DIR=./data/chroma_db
PUBMED_MAX_RESULTS=10
RELEVANCE_THRESHOLD=0.6
MAX_REWRITE_ATTEMPTS=2
MAX_REGEN_ATTEMPTS=2
MCP_HOST=0.0.0.0
MCP_PORT=8000
Get a Mistral API key at console.mistral.ai.
NCBI requires a contact email for PubMed API access (PUBMED_EMAIL).
python main.py ask "What are the first-line treatments for type 2 diabetes?"
JSON output:
python main.py ask "What is metformin?" --json
python main.py chat
Speeds up cold-start by loading seed topics into ChromaDB. The pipeline also fetches papers automatically when the store has fewer than 20 documents.
python main.py ingest
python main.py ingest --topics "diabetes,hypertension" --max 15
Expose the RAG pipeline as MCP tools for AI agents.
python main.py serve
The server listens at http://localhost:8000/sse (SSE transport).
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"medical-rag": {
"url": "http://localhost:8000/sse"
}
}
}
Create .vscode/mcp.json:
{
"servers": {
"medical-rag": {
"type": "sse",
"url": "http://localhost:8000/sse"
}
}
}
Use Copilot Agent mode and keep python main.py serve running in a terminal.
{
"mcpServers": {
"medical-rag": {
"url": "http://localhost:8000/sse"
}
}
}
ingest).simple, complex, or multi_hop.[PMID] citations.Medical Research Intelligence Assistant is an agentic RAG system that answers medical questions using PubMed literature with evidence-based citations. Built with LangGraph, it combines Adaptive RAG, S
Übersicht
Medical Research Intelligence Assistant is an agentic RAG system that answers medical questions using PubMed literature with evidence-based citations. Built with LangGraph, it combines Adaptive RAG, Self-RAG, ChromaDB, and an MCP server to provide grounded responses for AI agents and developers.
Tools
Noch keine Tool-Liste. Remote-Server erhalten eine nach dem ersten Health-Check.
FAQ
Kopieren Sie auf dieser Seite die stdio-Konfiguration für Cursor, Claude Desktop, Claude Code oder VS Code. Sie nutzt die Installation des Herausgebers, keinen PlugMCP-Proxy.
In diesem Eintrag ist keine erforderliche Umgebungsvariable aufgeführt.
Agentic Medical Rag läuft lokal über stdio.
Zuletzt geprüft: 2026-10-28. Medical Research Intelligence Assistant is an agentic RAG system that answers medical questions using PubMed literature with evidence-based citations. Built with LangGraph, it combines Adaptive RAG, Self-RAG, ChromaDB, and an MCP server to provide grounded responses for AI agents and developers.