Server4Agent — Claude Code MCP server: what it does, how to install
Server4Agent — a remote MCP server providing cloud environments where AI assistants write, execute, and host applications at live URLs. Keeps services running after chat sessions.
no license updated 2026-10-28
claude mcp add --transport http server4agent https://mcp.server4agent.comWhat Server4Agent does
The server runs remotely at https://mcp.server4agent.com via streamable HTTP. Nothing runs locally on your machine. An assistant provisions a cloud box and creates project folders inside. Each app receives a distinct URL under <slug>.apps.server4agent.com. Processes continue running after you close the session.
The catalog includes 38 tools. They handle server management, deployment lifecycles, and direct workspace edits through tools like read_file and write_file. Credentials remain private: values set through set_secret cannot be retrieved by any tool. Destructive actions require explicit confirmation from your client.
A registered account on https://www.server4agent.com is required. Authentication relies on OAuth 2.1 dynamic registration or a bearer token. Invoking the on-server agent directly consumes balance from your account.
What it helps with
- deploy web applications and landing pages to dedicated subdomains
- keep background daemons and bots running after the assistant session terminates
- grant AI assistants isolated shell execution and file storage without local setups
- pass API credentials using write-only environment variables
Example prompts for the agent
- Spin up a showcase page for a coffee shop and make it accessible online.
- Write an endpoint that transforms uploaded CSV files into JSON payloads and start it.
- Set up a recurring task to monitor website uptime every hour and record downtime.
How to install Server4Agent
Platform CLI: remote server
claude mcp add --transport http server4agent https://mcp.server4agent.comPlatform CLI: remote server
codex mcp add server4agent --url https://mcp.server4agent.comConfig file
{
"mcpServers": {
"server4agent": {
"url": "https://mcp.server4agent.com"
}
}
}Config file
{
"servers": {
"server4agent": {
"type": "http",
"url": "https://mcp.server4agent.com"
}
}
}Platform CLI: remote server
gemini mcp add -t http server4agent https://mcp.server4agent.comStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Server4Agent
How to install Server4Agent in Claude Code?
Run claude mcp add --transport http server4agent https://mcp.server4agent.com in your terminal. Follow the browser prompt to complete OAuth sign-in or supply your bearer token.
What does Server4Agent do?
It grants AI assistants remote compute instances to build apps, edit project files, execute terminal tasks, and publish services under persistent web URLs.
How are environment secrets handled?
Secrets configured with set_secret are write-only, meaning no tool or prompt can inspect existing values. Destructive actions that drop instances or wipe projects require confirmation from your client.