MCP setup guide
Connect Claude Code
Add Attorly to Claude Code with one command and use its tools for contracts, clauses and legal research from your terminal.
Before you start
- An Attorly Pro or Enterprise plan.
- Claude Code installed and signed in (run claude --version to check).
Steps
Add Attorly to Claude Code
One command adds Attorly to Claude Code for every project on this computer. Claude Code signs in through your browser the first time it is used.
Run this in your terminal
bashclaude mcp add --transport http --scope user attorly https://attorly.ai/api/mcpThen, inside Claude Code, run this, choose Attorly and pick Authenticate; your browser opens Attorly
text/mcpSign in and choose what Claude Code may do
Claude Code opens Attorly in your browser. Sign in, pick your organization and tick the permissions you want to allow; reading is ticked to start with. Connected apps and their permissions are under Settings › Developers › Connect.
Check that it works
Start Claude Code and run /mcp: Attorly is listed. Choose it and pick Authenticate; your browser opens Attorly. Then ask: “List my five most recent documents in Attorly.”
Use an API key instead
For scripts, CI and servers that cannot open a browser: create a key under Settings › Developers › API keys and paste it into Claude Code.
One command adds Attorly to Claude Code for every project on this computer, with your key in the Authorization header.
Run this in your terminal
claude mcp add --transport http --scope user attorly https://attorly.ai/api/mcp \
--header 'Authorization: Bearer lbmcp_your_api_key'Check that Claude Code can reach Attorly
claude mcp get attorlyIf it does not work
- /mcp shows Attorly as needing authentication again.
- The access expired or the connection was removed in Attorly. Choose Attorly in /mcp and authenticate again.
- Attorly only works in one project.
- It was added without --scope user, so Claude Code saved it for the current project only. Remove it and add it again with --scope user.
- Something else went wrong.
- Errors such as 401, insufficient_scope and rate_limited are explained in the MCP troubleshooting section. Every call also appears in Settings › Developers › Request logs, with the error it returned. MCP troubleshooting