fhir-mcp-server-medagentbench
The fhir-mcp-server-medagentbench is a Python-based server designed for simulating FHIR API interactions within the MedAgentBench environment. It facilitates testing without needing a live FHIR server by handling MCP requests. It includes features like resource listing and operation simulations.
fhir-mcp-server-medagentbench
A Python-based MCP server for the MedAgentBench environment. It simulates interactions with a FHIR API by intercepting MCP requests that would match real FHIR operations. This allows testing without a live FHIR endpoint.
Features
- Simulates FHIR operations
list_resources
read_resource
list_tools
call_tool
- Uses
mcp-server
library - Configured with Poetry
- Includes asynchronous unit tests with pytest
Installation
Ensure Python >= 3.10 and Poetry are installed.
Configuration
Set FHIR_BASE_URL
environment variable before running the server.
Usage
Run the server using fhir-mcp-server-medagentbench
. The server listens for MCP requests via standard input/output.
Development
Clone the repository, install dependencies, and use pre-commit for code style checks.
Testing
Use pytest for running tests, requiring pytest-asyncio
.
License
MIT License.
Contributing
Contributions are welcome. Please open an issue or submit a pull request.