MCP-Claude
Enables chatting with AI directly in Roblox Studio to read, write, and modify scripts and instances, supporting multiple free AI providers.
README
AI Assistant for Roblox Studio
Multi-AI assistant that lives inside Roblox Studio. Chat with AI directly in Studio to read, write, and modify your project. Supports multiple free AI providers — no paid API keys required.
Supported AI Providers (All Free)
| Provider | Speed | Quality | Setup |
|---|---|---|---|
| Groq | Fastest | Great | Free API key at console.groq.com |
| Gemini | Fast | Best | Free API key at aistudio.google.com |
| Ollama | Depends | Good | 100% local, no key needed. Install Ollama |
| HuggingFace | Slower | Good | Free token at huggingface.co |
| Claude | Fast | Excellent | Free tier API key at console.anthropic.com |
| Mistral | Fast | Great | Free API key at console.mistral.ai |
| DeepSeek | Fast | Great | Free API key at platform.deepseek.com |
| SambaNova | Fast | Great | Free API key at cloud.sambanova.ai |
How It Works
You type in Studio plugin chat
↓
Plugin sends message to server (HTTP POST /chat)
↓
Server calls AI provider (Groq/Gemini/Ollama/HuggingFace/Claude/Mistral/DeepSeek/SambaNova)
↓
AI requests tool calls (read_script, write_script, etc.)
↓
Server sends tool requests to plugin (HTTP GET /poll)
↓
Plugin executes in Studio, posts results back
↓
Server feeds results to AI, gets final response
↓
Plugin displays AI response in chat
No Claude Code CLI required. The server is standalone — just run it and chat.
Quick Start
Prerequisites
- Node.js v18+
- Roblox Studio
- One free API key (Groq, Gemini, Claude, Mistral, DeepSeek, SambaNova, or HuggingFace) — or Ollama for 100% local use
Setup
Windows (one-click):
setup.bat
Manual:
npm install
npm run build
Copy the plugin to Roblox Studio:
# Windows
copy plugin\ClaudeMCP.lua "%LOCALAPPDATA%\Roblox\Plugins\"
# macOS
cp plugin/ClaudeMCP.lua ~/Documents/Roblox/Plugins/
Run
Step 1 — Enable HTTP Requests in Roblox Studio:
In Roblox Studio, go to Game Settings > Security and turn on "Allow HTTP Requests". This is required for the plugin to talk to the server.
Step 2 — Start the server:
Double-click start.bat in the project folder. A terminal window will open and the server will start instantly.
Or manually in a terminal:
cd "MCP Claude"
node build/index.js
You should see:
Roblox Studio AI Server
========================
Server running on http://localhost:3636
Waiting for Roblox Studio plugin to connect...
Keep the terminal window open — the server must be running while you use the plugin. Close it to stop the server.
Step 3 — Use it in Roblox Studio:
- Open Roblox Studio — the plugin loads automatically with an "AI Assistant" panel
- The status dot should turn green (connected to server)
- Click the gear icon in the plugin panel
- Enter your API key (or configure Ollama URL)
- Select an AI provider from the dropdown
- Start chatting!
Troubleshooting: If the status dot stays red:
- Make sure
start.batis running (the terminal window is open)- Make sure "Allow HTTP Requests" is enabled in Game Settings > Security
- The server must be running BEFORE you open Studio
Environment Variables (Optional)
You can also set API keys via .env file:
cp .env.example .env
# Edit .env with your keys
What the AI Can Do
| Tool | Description |
|---|---|
get_hierarchy |
Browse the Explorer tree |
read_script |
Read script source code |
write_script |
Write/overwrite scripts |
create_script |
Create Script, LocalScript, or ModuleScript |
delete_instance |
Remove instances |
get_properties |
Read all properties of an instance |
set_property |
Set Vector3, Color3, CFrame, string, number, bool |
execute_lua |
Run arbitrary Lua in Studio |
search_instances |
Find instances by ClassName or Name |
get_selection |
Get current Studio selection |
set_selection |
Set the Studio selection |
Example Prompts
- "Create a part in Workspace called MyPart"
- "Show me all scripts in ServerScriptService"
- "Make all parts in the model red and anchored"
- "Create a sprint script for the player"
- "Find all Part instances and make them transparent"
Plugin GUI
The dockable panel in Studio has:
- Provider dropdown — switch between Groq, Gemini, Ollama, HuggingFace, Claude, Mistral, DeepSeek, SambaNova
- Settings (gear icon) — configure API keys and Ollama URL
- Chat area — conversation with the AI, tool call notifications
- Status dot — green = connected, red = disconnected, yellow = thinking
Chat Commands
| Command | Description |
|---|---|
/help |
Show help message |
/clear |
Clear the chat |
Architecture
Server (src/)
index.ts— Entry point, starts Express server on port 3636bridge.ts— HTTP endpoints:/chat,/poll,/result,/providers,/config,/healthtools.ts— 11 tool definitions (JSON Schema format)ai/provider.ts— AI provider interfaceai/groq.ts— Groq API clientai/gemini.ts— Google Gemini API clientai/ollama.ts— Ollama local API clientai/huggingface.ts— HuggingFace Inference API clientai/claude.ts— Anthropic Claude API clientai/mistral.ts— Mistral AI API clientai/deepseek.ts— DeepSeek API clientai/sambanova.ts— SambaNova API clientai/chat.ts— Chat engine with tool execution loop
Plugin (plugin/)
ClaudeMCP.lua— Full plugin with chat UI, provider selector, settings panel, and tool execution
Communication
Roblox Studio can't host HTTP servers, so the plugin polls:
- User sends message in plugin chat
- Plugin POSTs to
/chaton the server - Server calls the AI provider
- AI returns tool calls → server queues them
- Plugin polls
GET /poll, executes tools, POSTs results to/result - Server feeds results back to AI until done
- Final response sent back to plugin
Development
# Watch mode
npm run dev
# Build
npm run build
# Start
npm start
Change port:
PORT=4000 npm start
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.