Enables AI assistants to interact with Replit workspaces, providing tools for repl management (create, fork, delete, run, stop), file operations (read, write, create, delete, search), environment variable management, deployment operations, and user management through Replit's GraphQL API.
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
Manual Installation
Clone this repository
Install dependencies:
npm installBuild:
npm run buildRun:
npm start
Configuration
The server requires a REPLIT_TOKEN environment variable containing your Replit connect.sid cookie token.
Getting Your Token
Log into Replit in your browser
Open Developer Tools (F12)
Go to Application > Cookies > replit.com
Copy the value of
connect.sid
Claude Desktop Configuration
Add to your Claude Desktop config file:
Available Tools (24 Total)
User Operations
Tool | Description |
| Get info about the authenticated user |
| Get user info by numeric ID |
| Get user info by username |
Repl Management
Tool | Description |
| List repls owned by the user |
| Get repl info by URL |
| Get detailed repl info (comments, multiplayers, tags, stats) |
| Set the active repl for subsequent operations |
| Create a new repl |
| Fork an existing repl |
| Delete a repl (requires confirmation) |
| Start a repl |
| Stop a running repl |
File Operations
Tool | Description |
| Read file contents |
| Write content to a file |
| List files in a directory |
| Create a new file |
| Delete a file |
| Create a new directory |
| Search for content in files |
Environment Variables
Tool | Description |
| List all environment variables for a repl |
| Set an environment variable |
| Delete an environment variable |
Deployments
Tool | Description |
| Get deployment info for a repl |
| Deploy/publish a repl |
Development
Deployment to Smithery
Ensure you have a
Dockerfileandsmithery.jsonin your repoPush to GitHub
Connect your repository via Smithery dashboard
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