1. Conduid
  2. Agents
  3. Fastmcp Health Rbac Secure
MCP server · Agents

Fastmcp Health Rbac Secure

FastMCP server + Gemini 2.0 Flash LangChain client for RBAC-protected patient data tools backed by SQLite + JWT.

Unclaimed agents
34Low

Scored 6 months ago · breakdown

About Fastmcp Health Rbac Secure

Fastmcp Health Rbac Secure is an MCP server in the Agents category: fastMCP server + Gemini 2.0 Flash LangChain client for RBAC-protected patient data tools backed by SQLite + JWT.

Install

From source
git clone https://github.com/NijatZeynalov/fastmcp-health-rbac-secure

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Fastmcp Health Rbac Secure

Powered by Claude · Grounded in docs

I know everything about Fastmcp Health Rbac Secure. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Patient Data Access MCP

FastMCP server + Gemini 2.0 Flash LangChain client showcasing RBAC-protected patient data tools backed by SQLite + JWT.

Prerequisites

  • Python 3.11+
  • GOOGLE_API_KEY for Gemini 2.0 Flash (already referenced inside .env)

Install dependencies:

pip install -r requirements.txt

Environment Variables

.env ships with sample values:

JWT_SECRET – symmetric key used to validate tokens.

DB_URL – path to the SQLite file (sqlite:///app.db by default).

MCP_SERVER_SSE_URL – SSE endpoint exposed by FastMCP (http://127.0.0.1:8000/sse).

GOOGLE_API_KEY – Gemini credential (replace with a valid key).

JWT_* – pre-generated tokens scoped to Doctor, Nurse, LabTechnician, and Admin roles.

Update secrets before using in a real setting.

Running the MCP Server

python server.py --transport sse --host 127.0.0.1 --port 8000
  • The first launch creates/ seeds app.db with staff, patients, vitals, labs, etc.
  • Other transports are available (stdio, http, streamable-http). Pass --transport stdio to embed inside another process.
  • Use python server.py --issue-token Doctor --token-email someone@hospital.test to mint new JWTs.

LangChain + Gemini Client

The client connects to the MCP server through the LangChain MCP Adapter and lets Gemini pick the correct MCP tool per request.

python langchain_client.py --role doctor --query "Order a lipid panel for patient 2"

Flags:

  • --role – one of doctor|nurse|labtechnician|adminstaff (selects the JWT token).
  • --query – natural-language instruction for Gemini.
  • --server-url – override the SSE endpoint if the server runs elsewhere.

RBAC Map ↔ Tools

Role Tools
Doctor ViewPatientHistory, UpdateDiagnosis, OrderLabTest
Nurse ViewPatientHistory, UpdateVitals, RecordNurseNotes
LabTechnician ViewLabOrders, EnterLabResults
AdminStaff ScheduleAppointment, BillingInfoView

Every write tool automatically records an audit entry in the audit_log table (who, what, when, payload).

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Fastmcp Health Rbac Secure

How do I install Fastmcp Health Rbac Secure?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Fastmcp Health Rbac Secure safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Fastmcp Health Rbac Secure still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.