Quickstart
Connect Moonlit Legal Research to Claude or any MCP-compatible client.
Base URL
https://mcp.moonlit.ai/
Authentication
Moonlit MCP uses OAuth 2.1 with Dynamic Client Registration and PKCE S256. The consent screen accepts your API key as the identity factor. The OAuth handshake completes automatically. You do not register an OAuth client yourself.
| Step | What happens |
|---|---|
| 1. Client registers | Dynamic Client Registration (RFC 7591) |
| 2. User authorizes | Consent page accepts the API key |
| 3. Token exchange | PKCE S256, Bearer token issued |
If you do not have an API key, get your key here. 7 day trial.
Connect in Claude.ai
- Open Claude.ai. Click Customize in the left sidebar, then Connectors.
- Click the + button, then Add custom connector.
- Set the name to Moonlit Legal Research.
- Paste the remote server URL:
https://mcp.moonlit.ai/. - Click Add. A browser tab opens at the Moonlit consent page.
- Paste your API key into the input box. Click Login.
- The browser redirects back. Tools are available in your next chat.
Tip: when configuring the connector, allow all tools. Claude can then decide which tool to use when, which is the most useful behaviour for legal research.
Connect in Claude Code
- Run
claude mcp add --transport http moonlit https://mcp.moonlit.ai/. - Trigger the OAuth flow with
/mcp. Claude Code opens the consent page in your browser. - Paste your API key. Click Login.
- Verify with
claude mcp list.
First call
Prompt:
Expected response shape: a citation to CELEX 32024R1689 with the source URL to the original document at the publisher, followed by the article text.
Under the hood, Claude calls convert_to_celex("EU AI Act"), then get_document_articles("32024R1689") or retrieve_document, and returns the citation.
Troubleshooting first connect
- OAuth never completes. Allow pop-ups for
claude.aiandmcp.moonlit.ai. Disable third-party cookie blocking formcp.moonlit.ai. - API key rejected at consent. Key is expired, rotated, or wrong tenant. Email support@moonlit.ai.
get_filtersreturns nothing. Outbound HTTPS tomcp.moonlit.aiis blocked. Allow it at your firewall.
Next: Use cases.