Skip to main content
Glama
Passport MCP Server

Passport MCP Server

by banarasi

Passport MCP Server (mock)

A mock MCP server for the Passport ELM legal matter-management system: 13 typed tools (create/enrich/search/submit matters, budgets, allocations, entitlements) over Streamable HTTP, backed by Postgres, with a deterministic rules engine and an append-only audit log.

Extracted from the legalDashboard monorepo with history preserved. Sibling repos:

Repo

Role

passport-mcp-server (this)

Tool contract + business rules + persistence

matter-assistant-backend

LangGraph wizard agent / SSE BFF (MCP client)

matter-assistant-ui

Next.js chat portal

Run

docker compose up -d --build     # Postgres on host :5433, MCP server on :8081

The MCP endpoint is http://localhost:8081/mcp. Migrations in src/passport_mcp/migrations/ are idempotent and run at startup; mock reference data lives in src/passport_mcp/data/.

Related MCP server: Spec-Driven IntelliMatch / iSuite MCP

Develop & test

docker compose up -d postgres            # tests only need the database
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
python -m pytest tests/ -q

Config is env-driven (src/passport_mcp/config.py); the default DATABASE_URL is postgresql://passport:passport@localhost:5433/passport.

Invariants

  • Business rules and error codes are defined once in src/passport_mcp/rules.py and re-emitted verbatim by tools.

  • Tools never raise for business failures — they return {"ok": false, "error": {code, message, field}}.

  • Writes are idempotent (client-supplied idempotency_key) and audited.

Behind a corporate TLS-intercepting proxy, drop its root CA as a .crt into certs/ (gitignored) before building the image.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables interaction with IntelliMatch recruiting and iSuite insurance systems through spec-driven MCP tools, allowing natural language queries for candidate search, policy management, claims, and workflows.
      28
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to interact with IBM Engineering Lifecycle Management (ELM), including DOORS Next Generation, EWM, and ETM, for managing requirements, work items, tests, and project builds through natural language.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for Clio Manage that enables interaction with legal practice data including matters, contacts, activities, communications, tasks, documents, calendar entries, and bills via natural language.
      Apache 2.0