# Photon MCP Server

> Generate MCP, CLI, and web interfaces from one TypeScript file.

- **URL**: https://followmcp.com/en/servers/photon
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 101
- **FMRS Score**: 54/100 (Grade D)
- **Source**: https://github.com/portel-dev/photon
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 20+, Bun
- **Auth**: No credential needed

## Overview
Photon is a development tool for building agent capabilities. Developers write TypeScript classes and methods, and Photon derives MCP tools, CLI commands, the Beam web interface, and embedded app interfaces from types, comments, and tags. It also supports HTTP routes, scheduled jobs, webhooks, state, and audit history. The available MCP tools depend on the Photon code being run; the supplied material does not specify a fixed tool list.

## Best for
- Developers who want to write and reuse agent tools in TypeScript.
- Teams that want people and MCP clients to use the same capabilities.

## Not for
- Users looking for a ready-made MCP service with a fixed set of tools.
- Users who do not want to run or review custom TypeScript code.

## Required permissions
- Requires Node.js 20+ in the environment where Photon runs; the README examples use Bun.
- The file, network, environment-variable, and other access required depends on the code in each Photon.
- A remote MCP service may expose installed Photons to connected clients; the optional claim-code feature can scope a remote session to a directory.

## Risks
- Photon executes trusted Photon source code in the application process; custom code may access resources available to that environment.
- An MCP tool's behavior and access scope depend on the specific Photon implementation and cannot be inferred from Photon alone.
- The README says installed Photons are visible to each connected MCP client by default; review exposed tools and authorization when deploying remotely.

## Client config (JSON)
```json
{
  "mcpServers": {
    "analytics": {
      "command": "photon",
      "args": ["mcp", "analytics"]
    }
  }
}
```
