+ 
Needle MCP Server — Local AI for Needle
Talk to your AI assistant about your 3D scenes! Connect Claude, Cursor, or other AI tools to the Needle Inspector so you can explore your three.js scenes, edit objects, and get help - all through natural conversation.
Quick Start
Start the local MCP server:
npx needle-cloud startConnect your AI assistant using the instructions below in the How to Connect section.
Install the Needle Inspector for Chrome to chat with your AI about any three.js scene in the browser.
Visit a three.js webpage (e.g. needle.tools)
Ask your local AI assistant questions about the scene!
Works with your favorite AI tools
Works with Claude Desktop, Cursor, VS Code Copilot, Antigravity, and more.
What Can You Do?
Once connected, open the Needle Inspector on any three.js webpage and chat naturally with your AI assistant:
- Explore 3D scenes: "Show me all the lights in my scene"
- Inspect objects: "What materials are used in this scene?"
- Edit properties: "Change the main light color to warm orange"
- Get creative help: "How can I make this scene look more realistic?"
- Optimize performance: "Why is my scene running slowly?"
- Learn techniques: "How do I add reflections to this material?"
- Debug issues: "This object looks weird, what's wrong with it?"
Your AI can actually see your 3D scene through the Inspector and help you work with specific objects, materials, lighting, and settings in real-time.
How to Connect
Using Claude Desktop
Quick setup:
Open your terminal and run:
claude mcp add --scope user --transport http needle http://localhost:8424/mcpRestart Claude Desktop
Look for the 🔌 icon in the bottom-right - you're connected!
Using VS Code
Setup:
Open Command Palette:
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux)Choose "MCP: Add Server"
Fill in the details:
- Name:
needle - Transport:
http - URL:
http://localhost:8424/mcp
- Name:
Using it:
Type #needle in Copilot chat to see Needle tools, or just ask naturally!
Using Cursor
In your project folder, create a file:
.cursor/mcp.jsonAdd this:
{ "mcpServers": { "needle": { "transport": "http", "url": "http://localhost:8424/mcp" } } }Restart Cursor
Important: Switch to Agent Mode (not Ask Mode)
Try it: "Show me all the meshes in my scene"
Using Antigravity
Quick setup:
Open Command Palette:
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux)Choose "MCP: Add Server"
Fill in the details:
- Name:
needle - Transport:
http - URL:
http://localhost:8424/mcp
- Name:
Antigravity is great at understanding what you want - just describe your goal!
What to Ask
Here are some examples to get you started. Make sure the Needle Inspector is open in your browser with a three.js scene loaded:
Exploring scenes:
"Show me all the lights in my scene" "What materials am I using?" "Find all the cameras and tell me where they're positioned" "List all the meshes and their triangle counts" "Which objects in my scene are invisible?"
Editing and tweaking:
"Change the directional light intensity to 0.5" "Make the sphere at position (0, 1, 0) red" "Hide all helper objects" "Set the fog color to light blue"
Getting creative help:
"How can I make this look more photorealistic?" "What's the best way to add shadows to my scene?" "How do I create a metallic material?" "Suggest ways to improve the lighting"
Analyzing and debugging:
"Why is my scene loading slowly?" "Which objects have the most geometry?" "Are there any materials with missing textures?" "What's causing the low frame rate?"
Learning:
"Explain what this material's properties do" "How does the environment map affect the scene?" "What's the difference between a point light and a spot light?" "Show me best practices for three.js lighting"
Just ask naturally - your AI assistant can see what the Inspector sees and will help you understand and modify your 3D scene.
How It Works
When you have the Needle Inspector open in Chrome:
- The Inspector connects to the MCP server running locally (
localhost:8424) - Your AI assistant can query the Inspector for scene information
- The AI sees the same hierarchy, objects, and properties that you see
- When you ask the AI to make changes, it sends commands through the Inspector
- Changes appear instantly in your browser
This creates a powerful workflow where you can use natural language to explore and modify complex 3D scenes without manually clicking through the Inspector interface.
Troubleshooting
Claude Desktop not connecting?
- Quit Claude completely and restart it (not just close the window)
- Look for the 🔌 icon in the bottom-right corner - that means it's working
- Make sure the MCP server is running:
npx needle-cloud start-server - Double-check you followed the setup steps above
Cursor not seeing Needle?
- Make sure you're in Agent Mode (not Ask Mode)
- Try restarting Cursor
- Check that you created the
.cursor/mcp.jsonfile in your project - Verify the MCP server is running
VS Code not working?
- Make sure you have a recent version of VS Code (1.102 or newer)
- Check that GitHub Copilot is active
- Verify the MCP server is running
Can't see scene information?
- Open the Needle Inspector extension in your browser
- Make sure you're viewing a page with a three.js scene
- The Inspector should show the scene hierarchy - if not, try refreshing the page
- Check the browser console for any error messages
AI says it can't access the scene:
- Verify the Needle Inspector is open and showing your scene
- Make sure the MCP server is running (
npx needle-cloud start-server) - Try closing and reopening the Inspector
- Check that your AI tool is properly configured with the MCP server URL
Example Workflow
Here's a typical workflow using AI with the Needle Inspector:
- Open your scene: Load a webpage with your three.js project
- Launch Inspector: Click the Needle Inspector extension icon
- Ask for an overview: "What's in this scene?"
- Explore specifics: "Show me the properties of the main camera"
- Make changes: "Adjust the fog density to 0.02"
- Get suggestions: "How can I improve performance here?"
- Learn: "Explain what the roughness property does on this material"
The AI becomes your assistant, helping you understand, debug, and improve your 3D content through conversation.
What's Next?
Now that you're connected:
- Open the Needle Inspector on any three.js website
- Try asking about the scene structure
- Get AI help with tweaking materials and lighting
- Ask for optimization suggestions
- Learn three.js concepts by exploring real examples
For more help:
Using Needle Engine?
The Inspector has special features when used with Needle Engine projects, and the AI can help you work with Needle-specific components, networking, and XR features.