Define intent once. Photon turns a single TypeScript file into CLI tools, MCP servers, and web interfaces.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"photon": {
"command": "npx",
"args": [
"-y",
"portel-dev/photon"
]
}
}
}
Run in terminal:
claude mcp add photon npx -y portel-dev/photon
Add to .cursor/mcp.json:
{
"mcpServers": {
"photon": {
"command": "npx",
"args": [
"-y",
"portel-dev/photon"
]
}
}
}