Photon MCP server
Connect Claude, ChatGPT, Cursor, and other AI agents to your Photon account with the Model Context Protocol.
The Photon MCP server lets AI agents work with your Photon account through the Model Context Protocol. Your agent can set up projects, connect channels, send and read messages, and check billing, using the same API as the API reference.
Use the hosted server. It runs at https://mcp.photon.codes/mcp, signs you in with
OAuth, and needs nothing installed. You need a Photon account; sign up in the
dashboard.
Connect your client
Add the server to your client, then sign in to Photon in the browser window that opens.
claude mcp add --transport http photon https://mcp.photon.codes/mcp
claude mcp login photonOr run /mcp in a Claude Code session and select photon to sign in.
Install in Cursor,
or add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"photon": {
"url": "https://mcp.photon.codes/mcp"
}
}
}Install in VS Code,
or add this to .vscode/mcp.json:
{
"servers": {
"photon": {
"type": "http",
"url": "https://mcp.photon.codes/mcp"
}
}
}codex mcp add photon --url https://mcp.photon.codes/mcp
codex mcp login photonAdd a custom connector and enter https://mcp.photon.codes/mcp as its URL.
- Claude: Settings > Connectors > Add custom connector.
- ChatGPT: Settings > Apps & Connectors > Create. Developer mode must be turned on.
Use https://mcp.photon.codes/mcp as the server URL. The server uses the
Streamable HTTP transport and OAuth. If your client runs only local stdio
servers, use the local server.
What your agent can do
The server offers a tool for each Photon API operation available to OAuth clients. Ask for what you want in plain language:
- "Create a project called Support."
- "Add +1 415 555 0100 to the Support project's shared iMessage line."
- "How many messages did the Support project send this week?"
- "List the messages the Support project received today."
- "Show my organization's current billing usage."
Every call runs with your live permissions in the organization you authorized. If your role can't perform an action, the tool returns an error and nothing changes.
A hosted connection works in one organization at a time: the one you choose when you sign in. To switch, revoke the client under Connectors, then sign in again from your client and choose the other organization. To work across several organizations without switching, use the local server.
Agents can't manage single sign-on, organization members, OAuth clients, or service identities, and can't change payment methods or plans. Do those in the dashboard.
Run the server locally
Run the open-source @photon-ai/mcp
package when your client supports only stdio servers, or when you can't
complete an OAuth sign-in, such as in CI. It offers the Photon API tools and
requires Node.js 22 or later.
Create an account service key
In the dashboard, open
Service keys and
create a key. It starts with pho_ask_. See
Credentials for what it can do.
Add the server to your client
claude mcp add photon --env PHOTON_API_KEY=pho_ask_... -- npx -y @photon-ai/mcp{
"mcpServers": {
"photon": {
"command": "npx",
"args": ["-y", "@photon-ai/mcp"],
"env": { "PHOTON_API_KEY": "pho_ask_..." }
}
}
}An account service key acts for your account, with your role in every organization you belong to. Put the real key only in a local client configuration, never in a shared file or source control. The source code is on GitHub.
Security
An agent acts with your permissions and can change your projects, so treat its tool calls like your own:
- Review changes before they run. Your client decides when to ask before calling a tool. Keep approval turned on for tools that send messages, buy numbers or lines, or change and delete resources.
- Watch for prompt injection. Message contents, contact names, and webhook payloads come from other people. An agent that reads them can be told to do something you didn't ask for. Review tool calls that follow from reading that data.
- Use only the official address. Connect to
https://mcp.photon.codes/mcpor the@photon-ai/mcppackage from npm.
Manage access
To disconnect a client, open Connectors in the dashboard and revoke it. To stop a local server, delete its key under Service keys. A hosted connection also ends when you leave the organization it was authorized for.
Revoking a hosted client stops it from getting new tokens. A token it already holds keeps working until it expires.