# How do I connect Claude Code?

Create a named scoped credential in CloseMagnet and add the remote HTTP server with its supported authorization header. Use https://app.closemagnet.com/api/mcp, not a local STDIO command or a docs URL.

The [Connect an AI Agent](https://docs.closemagnet.com/connect-an-agent) guide includes the command and verification steps. Keep real values out of shared commands and source control, and consult [Claude Code's current MCP documentation](https://code.claude.com/docs/en/mcp) if its configuration screens or flags differ.

Links to the app require your CloseMagnet login.

Read online: https://docs.closemagnet.com/articles/questions/how-do-i-connect-claude-code
