Skip to main content
The Replit MCP Server is in beta. Tools and behavior may change.
Replit’s MCP server lets external clients create, update, and manage full-stack applications on Replit using the Model Context Protocol. Powered by Replit Agent, it transforms natural language prompts into live, published apps. This page is the developer reference for connecting your own MCP client. Looking to use Replit from a tool you already use? See Replit in Claude, Replit in Slack, or Replit in ChatGPT.

Server details

Requirements

For developers:
  • An MCP client or SDK that supports Streamable HTTP transport
For builders (end users):
  • A Replit account (Free, Core, Pro, or Enterprise)

Authentication

The server uses OAuth 2.1 with PKCE. MCP clients like Claude Code handle the entire flow automatically. If you’re building with an MCP client SDK, it handles discovery, dynamic client registration, PKCE, and token exchange — you provide the UX (browser redirect, callback handler, token storage). See the MCP authorization spec for details.

Connecting

Configure the server URL in your MCP client. Builders will complete the OAuth consent flow when they first connect. MCP SDK (TypeScript):
TypeScript (MCP SDK)
See the MCP TypeScript SDK documentation for details. The SDK handles the internal OAuth flow automatically. Claude Code:
Claude Code

Tools

The server exposes three public tools.

create_app_from_prompt

Create a new Replit App from a natural language description. Replit Agent immediately starts building the app. Response:
Agent builds the app asynchronously — direct the builder to the replUrl to track progress. Use replId and replUrl in subsequent tool calls.

update_app_using_prompt

Make changes to an existing Replit App. Use this to add features, fix bugs, or iterate on the app after it has been created.

ask_question

Ask Replit Agent about the current app. Runs in discussion mode — it won’t modify the app. Use this to check build status, ask about the tech stack, or relay builders’ questions.

Troubleshooting