# How do I connect an AI agent to my account?

Use the hosted endpoint https://app.closemagnet.com/api/mcp with a scoped CloseMagnet credential. Your host must support remote Streamable HTTP and the documented authentication header. No CloseMagnet client-secret pair or OAuth sign-in is required by that endpoint.

Start with only the read scopes needed for one safe task. Confirm the tool list loads, then inspect an actual permitted read; a listed tool does not grant access to it.

[Connect an AI Agent](https://docs.closemagnet.com/connect-an-agent) contains the complete generic, Claude Code and Codex setup, secure credential handling and troubleshooting. Other hosts vary by version and organization policy; do not assume every MCP form can send custom headers.

Read online: https://docs.closemagnet.com/articles/questions/connect-an-ai-agent-to-my-account
