dspy
dspy copied to clipboard
[MCP Example] ClinicalTrials.gov Remote MCP for Biomedical Data Exploration
What feature would you like to see?
Add a new MCP guide example that demonstrates how to use a remote MCP server via HTTP for real-world biomedical data exploration.
Would you like to contribute?
- [x] Yes, I'd like to help implement this.
- [ ] No, I just want to request it.
Additional Context
Based on
- #8957
Hi @chenmoneygithub
I would like to propose a real-world MCP example called “ClinicalTrials MCP”, which connects DSPy to the clinicaltrials.gov api via a remote FastAPI based MCP server.
The idea is to show how DSPy agents can use MCP tools over HTTP to:
- Search and summarize recruiting clinical trials (e.g., “ALS” in the U.S.)
- Retrieve detailed study metadata
- Export results, say csv, for downstream analysis
The notebook will demonstrate:
- How to register and call remote MCP tools from a DSPy agent
- End-to-end reasoning and tool-use tracing
- (Optional) observability with Phoenix or LangSmith
Thoughts?
@gnetsanet Thanks for the feature request, and sorry about the late reply!
Yes, that's a great idea, and I do like it. Whenever you are ready, please share a colab notebook with us for review, thank you!