INTEGRATION

Legal AI for Codex

Set up Legalcode in OpenAI Codex with a hosted Streamable HTTP MCP server for legal research workflows.

For: Engineering teams building legal automation with Codex

Setup

MCP endpoint

https://mcp.legalcode.md/mcp
  1. 1.Open MCP Servers

    In Codex, open Settings, then go to MCP Servers.

  2. 2.Add a Streamable HTTP server

    Create a new MCP server, choose Streamable HTTP, and give it a name such as `Legalcode`.

  3. 3.Paste, save, authenticate

    Paste `https://mcp.legalcode.md/mcp`, click Save, then authenticate. Capabilities follow the connected account.

  4. 4.Start a new thread

    After adding any MCP server, start a new chat or thread before using Legalcode. Conversations that were already open may not see newly added MCP servers.

What you get

  • ✓Search law and case law across supported jurisdictions
  • ✓Run practitioner-built legal skills programmatically
  • ✓Batch legal research and analysis
  • ✓Access regulatory guidance
  • ✓Searches are processed, never stored

Security

  • ▪Your documents never leave your device — Legalcode only sees the search, never your files
  • ▪Searches are processed, then discarded. We keep no record of what you looked up
  • ▪Sign in with OAuth 2.0 — nothing else to configure
  • ▪Encrypted in transit (TLS 1.2 or higher)

FAQ

Can Codex run legal skills automatically?

Yes. Legalcode skills are instruction sets that any MCP-compatible agent can follow. Codex can execute them as part of automated workflows.

What's the rate limit?

Free account MCP access is rate-limited. Pro at $25/month billed annually at $300 for 12 months, or $39.99/month billed monthly, provides higher throughput and concurrency for production workloads.

How is data updated?

Sources are updated daily from primary legal databases across supported jurisdictions.

Popular use cases

Get started with Codex

Connect your AI agent to global law, case law, and regulatory guidance in two minutes.