Skip to main content

Hospital Data MCP Server

A repo to manage an MCP server to enable access to the data set providing hospital data

The data is entirely made up and bears no linkage and or repsentation to any person.

Running: SSE

Need two terminal:

Terminal 1

  1. uv run -m wxo_bootcamp_mcp_server.app_sse : Run the SSE server

Terminal 2

  1. npx @modelcontextprotocol/inspector : Run the inspector for testing

Running: STDIO

Terminal

  1. npx @modelcontextprotocol/inspector : Run the inspector for testing
  2. Use the following setup:
    • Transport Type: STDIO
    • Command: uv run -m wxo_bootcamp_mcp_server.app_stdio
    • Arguments: --no-banner

Podman

You can do this for Terminal 1

  1. from root
  2. podman build .
  3. podman run -p 8080:8080 [Container ID]
  4. npx @modelcontextprotocol/inspector
  5. https://localhost:8080/sse

Deploy to a TechZone zone Code Engine

Pre Reqs:

Use an external IBM Cloud Container Registry

Account A (The one with the Container Registry)

  • $ibmcloud login -a https://cloud.ibm.com --sso
    • Choose the account with the Container
  • $ibmcloud target -r [region]
  • $ibmcloud target -g [group_name]
  • $ibmcloud cr login
  • $ibmcloud cr namespace-add [NAMESPACE]
  • $podman tag wxo-bootcamp-mcp-sever us.icr.io/[NAMESPACE]/[IMAGE_NAME]:[TAG]
  • $podman push us.icr.io/[NAMESPACE]/[IMAGE_NAME]:[TAG]
  • $ibmcloud iam service-id-create [SERVICE_ID_NAME] --description "Service ID for cross-account Container Registry access"
  • $ibmcloud iam service-policy-create [SERVICE_ID_NAME] --roles Reader --service-name container-registry
  • $ibmcloud iam service-api-key-create [API_KEY_NAME] [SERVICE_ID_NAME] --description "API key for cross-account registry access" --file api-key.json
  • To view the API Key and get [API_KEY_VALUE]
    • $cat api-jey.json

Account B (The techzone one with the Code Engine)

  • $ibmcloud login -a https://cloud.ibm.com --sso
    • Choose the account with the Techzone Account
  • $ibmcloud ce login
  • $ibmcloud ce project select -n [PROJECT NAME]
    • The project name is visible in the Code Engine page
  • $ibmcloud ce registry create --name [REGISTRY_SECRET_NAME] --server us.icr.io --username iamapikey --password [API_KEY_VALUE]
  • $ibmcloud ce application create --name [APP_NAME] --image us.icr.io/[NAMESPACE]/[IMAGE_NAME]:[TAG] --registry-secret [REGISTRY_SECRET_NAME]

Use everything on the Techzone instance

  • $ibmcloud login -a https://cloud.ibm.com --sso
    • Choose the account with the Techzone Account
  • $ibmcloud target -g [RESOURCE_GROUP]
    • Get the Resource GRoup from the Resource List
  • $ibmcloud cr login
  • $podman tag wxo-bootcamp-mcp-sever us.icr.io/[NAMESPACE]/[IMAGE_NAME]:[TAG]
    • The [NAMESPACE] is the only one available when you look at Container Registry in the techzone instance. You do not need to create one
  • $podman push us.icr.io/[NAMESPACE]/[IMAGE_NAME]:[TAG]
  • $ibmcloud iam api-key-create [API_KEY_NAME] --d "Tech Zone Code Engine registry access"
  • $ibmcloud ce project select -n [PROJECT NAME]
  • $ibmcloud ce registry create -name [REGISTRY_SECRET_NAME] --server us.icr.io --username iamapikey --password [API_KEY_VALUE]
    • THE [API_KEY_VALUE] will be available from the previous command
  • $ibmcloud ce application create --name [APP_NAME] --image us.icr.io/[NAME_SPACE]/[IMAGE_NAME]:[TAG] --registry-secret [REGISTRY_SECRET_NAME]

Test using MCP Inspector

  • $npx @modelcontextprotocol/inspector
  • Use the URL for the application (from Code Endgine) and append /sse as the URL
  • https://[APP_NAME].[IBM_CLOUD_URL_PART]/sse

To run using personal access token from GitHUb, for wxo

uvx --from git+https://YOUR_TOKEN@github.ibm.com/Benjamin-Janes/wxo-bootcamp-mcp-server.git wxo-bootcamp-data-server-stdio

Release files for wxo-bootcamp-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wxo-bootcamp-mcp-server 0.1.0
File Size Uploaded
wxo_bootcamp_mcp_server-0.1.0.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wxo-bootcamp-mcp-server 0.1.0
File Interpreter ABI Platform
wxo_bootcamp_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.8 kB

Release files / wxo_bootcamp_mcp_server-0.1.0.tar.gz

Download URL wxo_bootcamp_mcp_server-0.1.0.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
608350b68a404feff9ebd182a0bfca725b4ff8254b73f339c3f483028e48e95b
BLAKE2b-256 checksum
How to use checksums
68c742553380ecb312ba801a329ba6f99d36570936fc684d672eb52840381a37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release files / wxo_bootcamp_mcp_server-0.1.0-py3-none-any.whl

Download URL wxo_bootcamp_mcp_server-0.1.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6258baa60403b9c34eeb820ca936a404bc9094639ceec0b27b91a0355685dc7b
BLAKE2b-256 checksum
How to use checksums
772a5e3b40851ac444481ab58867a803feea96580daec3c9d8d006741622b657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page