Guardian — compliance copilot for visas, tax, and foreign-owned entities. MCP server with 23 tools for Claude Code / Desktop / Codex.
Project description
Guardian MCP Server
Connect Claude Desktop, Claude Code, or Codex to Guardian for compliance status, document processing, form filing, and Gmail integration.
Quick Start (one command)
pip install compliance-os[agent] && guardian-mcp install
The installer auto-detects your apps (Claude Desktop, Claude Code, Codex) and writes the config for you. No JSON editing needed.
Flags
guardian-mcp install # interactive — choose apps and API
guardian-mcp install --all # configure all detected apps (interactive API setup)
guardian-mcp install --all --local # all apps, local dev (no token needed)
guardian-mcp uninstall # remove Guardian from all apps
What You Get
18 tools across 5 groups:
Compliance Context — same intelligence as the Guardian dashboard:
guardian_status— findings, deadlines, key factsguardian_deadlines— upcoming deadlines sorted by urgencyguardian_risks— compliance findings by severityguardian_documents— your data room inventoryguardian_ask— ask Guardian's AI assistant any compliance question
Document Processing — runs locally on your machine (no API cost):
parse_document— extract text from PDF/DOCXclassify_document— identify document type (W-2, I-20, passport, etc.)upload_document— send documents to your Guardian data roomquery_documents— RAG search across your indexed documents
Form Filing — generate IRS forms locally:
generate_form_8843— fill Form 8843 with filing guidancerun_compliance_check— H-1B doc check, FBAR, student tax, 83(b) electionget_filing_guidance— deadlines, mailing addresses, next steps
Gmail — compliance correspondence:
gmail_search/gmail_read— find and read compliance-related emailsgmail_draft/gmail_send— draft and send with PDF attachmentsgmail_reply— respond in-threadgmail_download_attachment— save attachments for processing
Manual Setup (if you prefer)
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"guardian": {
"command": "/path/to/python",
"args": ["-m", "compliance_os.mcp_server"],
"env": {
"GUARDIAN_API_URL": "https://guardiancompliance.app",
"GUARDIAN_TOKEN": "gdn_oc_YOUR_TOKEN_HERE"
}
}
}
}
Claude Code
Add to ~/.claude/settings.json (global) or .claude/mcp.json (project):
Same JSON format as Claude Desktop.
Codex
Add to ~/.codex/config.toml:
[mcp_servers.guardian]
type = "stdio"
command = "/path/to/python"
args = ["-m", "compliance_os.mcp_server"]
[mcp_servers.guardian.env]
GUARDIAN_API_URL = "https://guardiancompliance.app"
GUARDIAN_TOKEN = "gdn_oc_YOUR_TOKEN_HERE"
Auth
| Mode | Token needed? | How |
|---|---|---|
| Local dev | No | Auto-generates JWT from local SQLite DB |
| Production | Yes | Get from Dashboard > Connect to OpenClaw |
Gmail (optional)
python scripts/guardian_mcp_setup.py
Requires a one-time Google Cloud OAuth setup. See the setup script for instructions.
Usage Examples
Once connected, just talk naturally:
- "What's my compliance status?"
- "Process these tax documents" (with file paths)
- "Generate my Form 8843 -- I'm an F-1 student from China, arrived 2022-08-15"
- "Search my Gmail for IRS notices"
- "Draft an email to my attorney with the H-1B doc check results"
- "When is my FBAR due?"
Architecture
Your Machine Guardian API
+---------------------+ +--------------+
| Claude / Codex | | Guardian |
| | | Backend |
| +---------------+ | REST API | |
| | Guardian MCP |--+--------------+> Status |
| | Server | | (token) |> Deadlines |
| | | | |> Risks |
| | Local tools: | | |> Documents |
| | - PDF extract | | |> Chat |
| | - Classify | | |> Upload |
| | - Form fill | | +--------------+
| | - Gmail OAuth | |
| | - RAG query | | Google API
| | |--+--------------> Gmail
| +---------------+ | (OAuth2)
+---------------------+
Document parsing runs locally -- your Claude/Codex handles the LLM extraction work, saving Guardian API token costs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file compliance_os-1.0.0.tar.gz.
File metadata
- Download URL: compliance_os-1.0.0.tar.gz
- Upload date:
- Size: 343.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51bf9451a3fa31aff60f785e1bde07b28b66b940993cb5f7ae0929283deba707
|
|
| MD5 |
ad90b5abb2f592229b1672260ae9877d
|
|
| BLAKE2b-256 |
16c4b98808f5bea10480d794414f3752ca79f74eae0ec673ed78667b6ae54730
|
File details
Details for the file compliance_os-1.0.0-py3-none-any.whl.
File metadata
- Download URL: compliance_os-1.0.0-py3-none-any.whl
- Upload date:
- Size: 277.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
966b4491b7a931d50fc0bcdbd1aa2b37d0ffe9a58aaf0b164d37bc56017f625d
|
|
| MD5 |
ff350be4d12f6778d1b0ed67f5ab3f99
|
|
| BLAKE2b-256 |
bed30749900a08cf7222b319cb4e42d6f969db01591b42e50656163220902744
|