MCP Server
Model Context Protocol server exposing Lightcone browser actions as tools for any MCP-compatible client.
The Lightcone Model Context Protocol (MCP) server exposes browser automation actions as MCP tools. Any MCP-compatible client (Claude Desktop, Cursor, Windsurf, and more) can use Lightcone to browse the web.
Available tools
Section titled “Available tools”The MCP server exposes these tools:
| Tool | Description |
|---|---|
create_session | Create a browser or desktop session |
navigate | Navigate to a URL |
click | Click at coordinates |
type | Type text |
screenshot | Capture the current viewport |
scroll | Scroll the page |
execute_action | Execute any Lightcone action |
get_html | Get the page HTML |
terminate_session | End the session |
Setup with Claude Desktop
Section titled “Setup with Claude Desktop”Add to your Claude Desktop configuration (claude_desktop_config.json):
{ "mcpServers": { "lightcone": { "command": "npx", "args": ["@tzafon/mcp-server"], "env": { "TZAFON_API_KEY": "sk_your_api_key_here" } } }}Then ask Claude: “Open a browser and go to example.com” — Claude will use the Lightcone MCP tools to create a session, navigate, and return results.
Setup with stdio transport
Section titled “Setup with stdio transport”For programmatic use:
TZAFON_API_KEY=sk_your_key npx @tzafon/mcp-serverSetup with HTTP transport
Section titled “Setup with HTTP transport”For remote server deployments:
TZAFON_API_KEY=sk_your_key npx @tzafon/mcp-server --transport http --port 3001How it works
Section titled “How it works”The MCP server wraps Lightcone’s API into the MCP tool specification. When an MCP client (like Claude) decides it needs to interact with a web page, it:
- Calls
create_sessionto spin up a Lightcone browser - Uses
navigate,click,type,screenshottools to interact - Calls
terminate_sessionwhen done
The server manages session lifecycle and translates MCP tool calls into Lightcone API requests.
Resources
Section titled “Resources”See also
Section titled “See also”- Anthropic Claude — Claude computer-use with Lightcone
- Computers — direct API access to browser sessions
- How Lightcone works — understand the session architecture