Skip to main content
Glama

FHIR Progressive Discovery MCP Server

by CaseMark
install.shโ€ข2.33 kB
#!/bin/bash # Installation script for FHIR Progressive MCP Server set -e echo "๐Ÿฅ FHIR Progressive MCP Server - Installation" echo "==============================================" echo "" # Get the directory of this script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR" # Step 1: Install dependencies echo "๐Ÿ“ฆ Step 1/4: Installing Python dependencies..." python3 -m pip install -r requirements.txt --quiet echo " โœ… Dependencies installed" # Step 2: Run tests echo "" echo "๐Ÿงช Step 2/4: Running tests..." if python3 test_server.py > /dev/null 2>&1; then echo " โœ… Tests passed" else echo " โŒ Tests failed - check installation" exit 1 fi # Step 3: Set up MCP config path echo "" echo "๐Ÿ”ง Step 3/4: Setting up MCP configuration..." MCP_CONFIG_PATH="$SCRIPT_DIR/mcp_config.json" # Detect shell if [ -n "$ZSH_VERSION" ]; then SHELL_RC="$HOME/.zshrc" elif [ -n "$BASH_VERSION" ]; then SHELL_RC="$HOME/.bashrc" else SHELL_RC="$HOME/.profile" fi # Add to shell config if not already present if ! grep -q "MCP_CONFIG_PATH.*fhir_mcp_server" "$SHELL_RC" 2>/dev/null; then echo "" >> "$SHELL_RC" echo "# FHIR Progressive MCP Server" >> "$SHELL_RC" echo "export MCP_CONFIG_PATH=\"$MCP_CONFIG_PATH\"" >> "$SHELL_RC" echo " โœ… Added MCP_CONFIG_PATH to $SHELL_RC" else echo " โ„น๏ธ MCP_CONFIG_PATH already in $SHELL_RC" fi # Set for current session export MCP_CONFIG_PATH="$MCP_CONFIG_PATH" # Step 4: Test MCP connection echo "" echo "๐Ÿ”Œ Step 4/4: Testing MCP connection..." if timeout 10 python3 test_mcp_client.py > /dev/null 2>&1; then echo " โœ… MCP server working correctly" else echo " โš ๏ธ MCP test timed out (this is sometimes normal)" fi echo "" echo "==============================================" echo "โœ… Installation Complete!" echo "==============================================" echo "" echo "๐Ÿ“ Next Steps:" echo "" echo "1. Restart your shell or run:" echo " source $SHELL_RC" echo "" echo "2. The MCP server is ready to use with Claude Code" echo " Config location: $MCP_CONFIG_PATH" echo "" echo "3. Test in Claude Code by asking:" echo ' "List all FHIR resource groups"' echo "" echo "4. View documentation:" echo " cat CLAUDE_CODE_INSTALL.md" echo "" echo "๐ŸŽ‰ Ready to go!"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CaseMark/FHIR-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server