lexos-compliance-mcp
Allows syncing compliance deadlines to Google Calendar, creating and updating events for upcoming deadlines.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lexos-compliance-mcpcheck client status for ABC Corp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LexOS Compliance MCP Server
Pilot build for eCSI — the first real piece of the LexOS platform. Started as
the Operations Engine slice (compliance tracking + document chase) and
has grown to cover the first four LexOS milestones: go-live infrastructure,
a Google Calendar connector, client-facing status/chase, and an AI document
drafting engine. Milestone 5 (GEO/visibility) is a research deliverable, not
code — see ../lexos-ecsi-audit/ (or wherever that landed).
Scoped to match Item 4 ("New Business Operational Automation") in the signed eCSI Delivery Plan Exhibit — a one-time build, delivered within 60 days of scope sign-off. M3 and M4 below are product-shaped work that belongs in the separate License, Referral & Advisory Agreement conversation once M1/M2 have proven out — see the milestone plan for why.
What's built — 16 MCP tools across 4 milestones
Backed by local SQLite (Node's built-in node:sqlite — no native compile
step, npm install just works, no Xcode CLT dependency).
Core tracking (the original pilot):
Tool | Does |
| Register a client entity |
| Add a compliance deadline (SEC_GIS, BIR_FILING, PEZA_RENEWAL, SSS, PHILHEALTH, HDMF, CORPORATE_HOUSEKEEPING, OTHER) |
| What's due within N days, across the book or one client |
| Close out a completed deadline |
| Log a document request to a client (the chase queue) |
| Clear a document off the chase queue |
| What's still outstanding, across the book or one client |
| Full picture for one client in a single call |
M1 — Go-live infrastructure:
Tool | Does |
| Bulk-register clients from CSV (name,entity_type,contact_whatsapp,contact_email) — onboard eCSI's real book in one call |
| Formats upcoming deadlines + outstanding documents as readable text. Returns text only — sending it anywhere is a separate step |
M2 — MCP Connector Fabric (Google Calendar):
Tool | Does |
| Push one deadline to Google Calendar (idempotent — updates, doesn't duplicate) |
| Push all upcoming deadlines within N days in one call |
Sync logic is fully unit-tested against FakeCalendarClient (npm run smoke:gcal) — the algorithm is proven correct independent of real Google
credentials. What's still needed to go live: a real Google Cloud OAuth
client (GCAL_CLIENT_ID, GCAL_CLIENT_SECRET, GCAL_REFRESH_TOKEN) — a
Google Cloud Console step (new project, OAuth consent screen), not a code
problem. Without it, both tools fail with a clear, actionable error instead
of doing something wrong silently.
M3 — Client-facing status + document-chase policy:
Tool | Does |
| Look up a client by name/id, return a client-facing status message — backend for a WhatsApp "STATUS" command |
| Applies the escalation policy (nudge after 3 days outstanding, escalate after 7 — tune in |
Neither tool sends anything. They produce text for a human to review, or to wire into a channel once eCSI has explicitly signed off on message tone and the auto-send policy. That boundary is deliberate — these messages go out under eCSI's brand to their real clients.
M4 — AI document drafting:
Tool | Does |
| Lists the 4 starter templates and what fields each requires |
| Merges client data + supplied fields into a template, returns a draft |
Four starter templates (src/templates/registry.ts): Secretary's
Certificate, Board Resolution, GIS Transmittal Note, Special Power of
Attorney — standard PH corporate-document conventions, not eCSI's actual
house templates (those need to be collected from their team before this
goes live for real). Every draft is explicitly marked
"DRAFT — requires human legal review before use". Missing required fields
throw a clear error rather than silently producing a document with blanks.
No case-law or statute reasoning anywhere in this tool — deliberately out
of the legal-research lane that Anycase.ai/Digest.ph already occupy.
Related MCP server: filevine-mcp
Running it
npm install
npm run smoke:all # all 3 smoke suites (core, gcal, drafting) — 29 assertions
npm run build # compiles to dist/
npm run dev # runs the server on stdio via tsx (no build step needed)Point Claude Desktop / Claude Code at the built server:
{
"mcpServers": {
"lexos-compliance": {
"command": "node",
"args": ["/Users/tonymac/code/lexos-compliance-mcp/dist/index.js"]
}
}
}For the Google Calendar connector, also set GCAL_CLIENT_ID,
GCAL_CLIENT_SECRET, GCAL_REFRESH_TOKEN in env.
Data lives in ./data/lexos.db (gitignored). Override with LEXOS_DB_PATH.
Verified working
npm run smoke— 11/11 assertions against the core tracking tools.npm run smoke:gcal— 9/9 assertions against the calendar sync algorithm viaFakeCalendarClient(create-then-update idempotency, window filtering) — no real Google credentials involved.npm run smoke:drafting— 9/9 assertions against the drafting engine (successful merge, missing-field rejection, unknown-template rejection).A real MCP client (
@modelcontextprotocol/sdk'sClient+StdioClientTransport) was run against the built server covering all 16 tools:tools/listreturns everything, and a full round-trip — bulk import → deadline → digest → status check → chase policy → template listing → document draft — works over the actual stdio protocol. The Google Calendar tool was confirmed to fail with the clear configuration error (not a crash) when credentials aren't set, which is the correct behavior right now.
Known issue, deliberately not fixed yet
npm audit flags a moderate-severity transitive vulnerability (a uuid
buffer-bounds issue) via googleapis's dependency chain. Not exploitable in
how this code calls it, and a clean fix means a breaking googleapis
major-version bump. Since the connector isn't live yet anyway (blocked on
real OAuth credentials), fix this before wiring up real credentials, not
before.
What's genuinely blocked on external input, not on more building
eCSI's real client data. Nothing here is seeded with anything but test/demo data. Real onboarding needs their actual roster.
Which calendar/CRM they actually run. M2 was built against Google Calendar as the most likely target for a small PH firm — that's an informed bet, not a confirmed fact. If it's something else, the
CalendarClientinterface insrc/calendar-client.tsis designed to be swapped without touching the sync algorithm.eCSI's actual document templates. M4 ships with generic PH-standard placeholders. Swapping in their real house templates is a content collection step with their team.
Real Google OAuth credentials for M2, and WhatsApp Business API access for M3's channel — both need eCSI (or Tony) to set up accounts this code can't create on its own.
Sign-off on message tone and auto-send policy for M3 — these messages represent eCSI to their own clients; that's their call, not a default I should ship silently.
Milestone 5 — GEO/visibility
Not code. See the audit deliverable produced alongside this build for a real assessment of eCSI's current online visibility and concrete recommendations — that's research/content work, not an MCP tool.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityFmaintenanceAn enterprise-grade MCP server that provides specialized tools for legal reasoning and analysis, automatically detecting legal domains and offering domain-specific guidance, templates, and citation formatting.333
- AlicenseCqualityBmaintenanceMCP server for Filevine that enables natural language interaction with legal case management, including projects, contacts, tasks, documents, billing, and more via Claude Desktop.1004MIT
- AlicenseAqualityBmaintenanceLegalMCP is a comprehensive US legal MCP server that enables AI assistants to search over 4 million US court opinions, manage Clio practice data, and access PACER federal filings through natural language.1863MIT
- AlicenseAqualityAmaintenanceAn MCP server providing structured intelligence about the EU AI Act, including risk classification, deadline tracking, obligations, penalties, and article lookups.95263MIT
Related MCP Connectors
AI transaction coordinator + legal-matters platform for real estate and law firms.
Connect AI to millions of laws and court cases with the Lawstronaut MCP.
A paid remote MCP for Lix, built to return verdicts, receipts, usage logs, and audit-ready JSON.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/localenhance/lexos-compliance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server