← Back to directory
P

Photon MCP Server

Community
Framework / SDK
Generate MCP, CLI, and web interfaces from one TypeScript file.

This is a framework for building MCP servers or agents, not a server you connect a client to.

Category
Dev Tools #239 of 751
Stars
★ 101 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 20+ · Bun
Credentials
No credential needed
License
MIT
Last commit
54FMRS · D

Photon is an MIT-licensed open-source development tool that can generate an MCP server and other interfaces from a TypeScript file. The README gives a local stdio configuration for Claude Desktop and also mentions Streamable HTTP. Actual tools, permissions, and risks depend on the Photon code deployed; the supplied material does not provide a fixed tool list.

Strongest · Documentation 14/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
9/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 8/20
The README describes stdio and Streamable HTTP MCP adapters, tool generation, and `photon doctor mcp`, but no manifest, source, CI, or key-path tests are available here to verify initialization, tool-list behavior, error handling, or dependency control. Under the static-review calibration, the happy path seems plausible but evidence is limited, so points are deducted.
Security and permissions 10/20
The README describes constructor parameters mapped to environment variables, claim codes that scope remote sessions by directory, and JWT/OAuth features, indicating credential and access-control mechanisms. However, no source or security-document contents are available to verify permission boundaries, data flows, defaults, or confirmation for dangerous operations. The supplied material shows no red-line behavior; points are deducted because key security details cannot be verified.
Maintenance 9/20
A MIT license is reported, and the repository is described as unarchived with 101 stars and no open issues. These facts do not establish sustained releases or commits, dependency updates, a security-response channel, or clear maintenance governance, so the score is conservative.
Documentation 14/20
The README includes a quick start, a Claude Desktop configuration example, method and tag examples, feature descriptions, and an index of layered documentation; it also states Node.js 20+ is required. Only the README was supplied, so authentication, limits, costs, troubleshooting details, and the contents of linked documents cannot be verified. Full marks are not justified.
Setup experience 13/20
The README gives a three-step Bun install, project creation, and Claude Desktop registration path, plus an MCP configuration snippet and an HTTPS `/mcp` example. The steps are clear, but installation and connection are not verified by a manifest or execution evidence, and users still need to manage the runtime and client configuration, so points are deducted.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the networkConnects to a database

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 20+ · Bun

Requires Node.js 20+. Install @portel/photon globally with Bun, run photon new my-tool to create a Photon file, then run photon mcp install my-tool to register it in Claude Desktop's configuration and restart Claude Desktop. Run photon to open the Beam web interface. The README also provides an MCP configuration example using photon mcp <name>.

claude_desktop_config.json
{
  "mcpServers": {
    "analytics": {
      "command": "photon",
      "args": ["mcp", "analytics"]
    }
  }
}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "analytics": {
      "command": "photon",
      "args": [
        "mcp",
        "analytics"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.analytics]
command = "photon"
args = ["mcp", "analytics"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add analytics -- photon mcp analytics

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm the connection in your client’s tool list; it should show the methods from the configured photon as tools.

Troubleshooting

  1. Confirm Node.js is version 20 or later and that the Photon command is available.
  2. Check that the Photon file is in the current project directory or `~/.photon/`, and that `photon mcp` uses the correct name.
  3. Run `photon doctor mcp` to diagnose the MCP runtime; restart Claude Desktop after changing its configuration.
  4. Check that client and server connection methods match; the README describes local stdio and public HTTPS `/mcp` endpoints.

Use cases

Expose custom TypeScript methods as MCP tools for agents.
Generate CLI commands and a web interface from the same capability code.
Add scheduled execution, webhooks, or HTTP routes to a capability.

Supported clients

Claude Desktop
Claude CodePartial support
CursorPartial support
ChatGPTPartial support

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 5111d9266d0e Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/photon.svg)](https://followmcp.com/en/servers/photon)