MCP Hub
Back to servers

Replit MCP Server

A comprehensive MCP server that allows AI assistants to manage Replit workspaces, including full CRUD operations on Repls, file system management, environment variables, and deployments.

Forks
1
Tools
24
Updated
Dec 14, 2025

Replit MCP Server

An MCP (Model Context Protocol) server that enables AI assistants to interact with Replit workspaces directly, without needing an agentic browser or constant user intervention.

Features

  • User Management: Get current user, lookup users by ID or username
  • Repl Management: List, create, fork, delete, and get detailed repl information
  • File Operations: Read, write, create, delete files and directories
  • Environment Variables: Manage secrets and environment variables
  • Deployments: Get deployment info and publish repls
  • Search: Search for content within files

Installation

From Smithery

smithery install replit-workspace --client claude

Manual Installation

  1. Clone this repository
  2. Install dependencies: npm install
  3. Build: npm run build
  4. Run: npm start

Configuration

The server requires a REPLIT_TOKEN environment variable containing your Replit connect.sid cookie token.

Getting Your Token

  1. Log into Replit in your browser
  2. Open Developer Tools (F12)
  3. Go to Application > Cookies > replit.com
  4. Copy the value of connect.sid

Claude Desktop Configuration

Add to your Claude Desktop config file:

{
  "mcpServers": {
    "replit": {
      "command": "node",
      "args": ["/path/to/replit-mcp-server/dist/index.js"],
      "env": {
        "REPLIT_TOKEN": "your-connect-sid-token"
      }
    }
  }
}

Available Tools (24 Total)

User Operations

ToolDescription
get_current_userGet info about the authenticated user
get_user_by_idGet user info by numeric ID
get_user_by_usernameGet user info by username

Repl Management

ToolDescription
list_replsList repls owned by the user
get_repl_by_urlGet repl info by URL
get_repl_detailsGet detailed repl info (comments, multiplayers, tags, stats)
set_active_replSet the active repl for subsequent operations
create_replCreate a new repl
fork_replFork an existing repl
delete_replDelete a repl (requires confirmation)
run_replStart a repl
stop_replStop a running repl

File Operations

ToolDescription
read_fileRead file contents
write_fileWrite content to a file
list_filesList files in a directory
create_fileCreate a new file
delete_fileDelete a file
create_directoryCreate a new directory
search_filesSearch for content in files

Environment Variables

ToolDescription
get_secretsList all environment variables for a repl
set_secretSet an environment variable
delete_secretDelete an environment variable

Deployments

ToolDescription
get_deploymentGet deployment info for a repl
create_deploymentDeploy/publish a repl

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build
npm run build

# Start production server
npm start

Deployment to Smithery

  1. Ensure you have a Dockerfile and smithery.json in your repo
  2. Push to GitHub
  3. Connect your repository via Smithery dashboard
  4. Deploy

API Coverage

This MCP server provides comprehensive coverage of Replit's GraphQL API including:

  • User queries and lookups
  • Repl CRUD operations
  • File system operations
  • Environment variable management
  • Deployment management
  • Search functionality

License

MIT

Reviews

No reviews yet

Sign in to write a review