Introduction
Laravel Cloud provides a remote Model Context Protocol (MCP) server that allows AI agents to manage your applications and infrastructure. Once connected, your agent operates with the same permissions as your Cloud user account, scoped to the organizations and access levels you authorize. Changes your agent makes affect real applications, and Cloud bills your organization for any resources it creates.Connecting your agent
Cloud uses OAuth to securely authenticate your AI agent. Add the MCP server to your client, then follow its steps to start the authorization flow.- Claude Code
- Claude web and desktop
- Codex CLI
- Cursor
- Amp CLI
- Antigravity
- Other
From your project directory, run the following command in your terminal:Then, run
/mcp in a Claude Code session in the same directory and select laravel-cloud to complete the authorization flow.Authorizing access
Cloud uses your existing browser session to authorize the connection and lets you choose an access level for each organization.
Managing connections
The Authorized applications section of your account’s security settings lists each agent you’ve connected, the organizations it can access, and when it was last used. From this section you can:- Change a connection’s access level for each organization by clicking Edit
- Disconnect an agent by clicking Edit, then Revoke access to all, which immediately invalidates its tokens

What your agent can do
The MCP server exposes tools covering most actions available in the Cloud dashboard. The server marks each tool as either read-only or able to make changes. MCP clients may use these annotations to decide which tool calls need your approval.Deleting resources
To prevent accidental data loss, tools that delete core infrastructure require manual confirmation in the Cloud dashboard. This includes applications, environments, databases, caches, buckets, domains, compute instances, secrets, and WebSocket servers. When you ask your agent to delete one of these resources, it returns a link that opens the resource’s deletion dialog in the dashboard.Agent skills
The MCP server also provides a set of agent skills, which are Cloud-specific guides for common tasks such as preparing an application for its runtime, connecting a custom domain, debugging a running application, and reducing costs. Your agent retrieves these skills through theget-skill tool, and the server’s instructions direct your agent to consult them before starting related tasks.
Security
Connecting an agent to Cloud gives it access to your infrastructure. Follow these practices:- Grant only the access you need. Choose Read only for organizations your agent only needs to inspect, and No access for organizations it doesn’t need at all.
- Watch for prompt injection. Content your agent reads, such as logs, issues, or web pages, may contain instructions written to manipulate it. Be cautious when using the Cloud MCP server alongside other tools that read untrusted content.
- Verify the server URL. Only connect to
https://cloud.laravel.com/mcp, and double-check the URL when installing the server from a third-party directory. - Check the client name. Cloud is unable to verify the client name shown on the authorization screen. Only authorize requests you started yourself.

