Needle Engine Documentation
Downloads
  • What is Needle Engine?
  • Testimonials
  • Get an overview

    • Samples and Showcase
    • Our Vision 🔮
    • Feature Overview
    • Technical Overview
  • Resources

    • Pricing and Plans
    • Changelog
    • API Documentation
    • Support & Community
    • Needle Inspector
  • Integrations

    • Needle Engine for Unity
    • Needle Engine for Blender
    • Needle Engine is three.js
    • Needle Engine on your Website
    • Needle Cloud
  • Core Concepts

    • Structure of a Needle Engine project
    • Everywhere Actions
    • Exporting Assets to glTF
    • Frameworks, Bundlers, HTML
    • Testing on local devices
    • Deployment and Optimization
  • Advanced

    • VR & AR (WebXR)
    • Image Tracking (WebXR)
    • Networking
    • MaterialX
    • Editor Sync
    • Responsive 3D Webdesign
  • Troubleshooting

    • How To Debug
    • Questions and Answers (FAQ) 💡
    • Support and Community
  • Videos

    • Tutorials on Youtube
    • Interviews on Youtube
  • Scripting Overview

    • Typescript Essentials
    • Scripting Introduction for Unity Developers
    • Needle Core Components
    • Everywhere Actions
  • Components and Lifecycle

    • Creating and using Components
    • @serializable and other decorators
    • Automatic Component Generation
    • Scripting Examples
    • Community Contributions
    • Additional Modules
  • Settings and APIs

    • <needle-engine> Attributes
    • needle.config.json
    • Needle Engine API
    • three.js API
Help
  • Needle Website
  • Needle Cloud
  • Support Community
  • Discord Server
  • X/Twitter
  • YouTube
  • Newsletter
  • Email
  • Feedback
  • Github
  • English
  • 简体中文
  • Español
  • Português
  • Français
  • हिन्दी
  • 日本語
  • Deutsch
  • Tiếng Việt
Downloads
  • What is Needle Engine?
  • Testimonials
  • Get an overview

    • Samples and Showcase
    • Our Vision 🔮
    • Feature Overview
    • Technical Overview
  • Resources

    • Pricing and Plans
    • Changelog
    • API Documentation
    • Support & Community
    • Needle Inspector
  • Integrations

    • Needle Engine for Unity
    • Needle Engine for Blender
    • Needle Engine is three.js
    • Needle Engine on your Website
    • Needle Cloud
  • Core Concepts

    • Structure of a Needle Engine project
    • Everywhere Actions
    • Exporting Assets to glTF
    • Frameworks, Bundlers, HTML
    • Testing on local devices
    • Deployment and Optimization
  • Advanced

    • VR & AR (WebXR)
    • Image Tracking (WebXR)
    • Networking
    • MaterialX
    • Editor Sync
    • Responsive 3D Webdesign
  • Troubleshooting

    • How To Debug
    • Questions and Answers (FAQ) 💡
    • Support and Community
  • Videos

    • Tutorials on Youtube
    • Interviews on Youtube
  • Scripting Overview

    • Typescript Essentials
    • Scripting Introduction for Unity Developers
    • Needle Core Components
    • Everywhere Actions
  • Components and Lifecycle

    • Creating and using Components
    • @serializable and other decorators
    • Automatic Component Generation
    • Scripting Examples
    • Community Contributions
    • Additional Modules
  • Settings and APIs

    • <needle-engine> Attributes
    • needle.config.json
    • Needle Engine API
    • three.js API
Help
  • Needle Website
  • Needle Cloud
  • Support Community
  • Discord Server
  • X/Twitter
  • YouTube
  • Newsletter
  • Email
  • Feedback
  • Github
  • English
  • 简体中文
  • Español
  • Português
  • Français
  • हिन्दी
  • 日本語
  • Deutsch
  • Tiếng Việt
  • Getting Started

    • Downloads
    • Needle Engine for Unity
    • Needle Engine for Blender
    • Needle Engine no Editor
    • Needle Engine on your Website
    • Needle Cloud
    • Custom integrations
    • Support and Community
  • Core Concepts

    • Structure of a Needle Engine project
    • Everywhere Actions
    • Exporting Assets to glTF
    • Frameworks, Bundlers, HTML
    • Testing on local devices
    • Deployment and Optimization
  • Scripting

    • Typescript Essentials
    • Creating and using Components
    • Scripting Introduction for Unity Developers
    • Automatic Component Generation
    • Scripting Examples
    • Community Contributions
  • Advanced

    • VR & AR (WebXR)
    • Image Tracking (WebXR)
    • Networking
    • MaterialX
    • Editor Sync
    • Responsive 3D Webdesign
  • Troubleshooting

    • How To Debug
    • Questions and Answers (FAQ) 💡
    • Support and Community
  • Reference

    • Feature Overview
    • Technical Overview
    • Needle Core Components
    • needle.config.json
    • <needle-engine> Attributes
    • @serializable and other decorators

Needle Logo + MCP Logo

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

  1. Start the local MCP server:

    npx needle-cloud start
  2. Connect your AI assistant using the instructions below in the How to Connect section.

  3. Install the Needle Inspector for Chrome to chat with your AI about any three.js scene in the browser.

  4. Visit a three.js webpage (e.g. needle.tools)

  5. 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

Claude Logo Using Claude Desktop

Quick setup:

  1. Open your terminal and run:

    claude mcp add --scope user --transport http needle http://localhost:8424/mcp
  2. Restart Claude Desktop

  3. Look for the 🔌 icon in the bottom-right - you're connected!

VS Code Logo Using VS Code

Setup:

  1. Open Command Palette: Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)

  2. Choose "MCP: Add Server"

  3. Fill in the details:

    • Name: needle
    • Transport: http
    • URL: http://localhost:8424/mcp

Using it:

Type #needle in Copilot chat to see Needle tools, or just ask naturally!

Cursor Logo Using Cursor

  1. In your project folder, create a file: .cursor/mcp.json

  2. Add this:

    {
      "mcpServers": {
        "needle": {
          "transport": "http",
          "url": "http://localhost:8424/mcp"
        }
      }
    }
  3. Restart Cursor

  4. Important: Switch to Agent Mode (not Ask Mode)

Try it: "Show me all the meshes in my scene"

Antigravity Logo Using Antigravity

Quick setup:

  1. Open Command Palette: Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)

  2. Choose "MCP: Add Server"

  3. Fill in the details:

    • Name: needle
    • Transport: http
    • URL: http://localhost:8424/mcp

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:

  1. The Inspector connects to the MCP server running locally (localhost:8424)
  2. Your AI assistant can query the Inspector for scene information
  3. The AI sees the same hierarchy, objects, and properties that you see
  4. When you ask the AI to make changes, it sends commands through the Inspector
  5. 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.json file 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:

  1. Open your scene: Load a webpage with your three.js project
  2. Launch Inspector: Click the Needle Inspector extension icon
  3. Ask for an overview: "What's in this scene?"
  4. Explore specifics: "Show me the properties of the main camera"
  5. Make changes: "Adjust the fog density to 0.02"
  6. Get suggestions: "How can I improve performance here?"
  7. 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:

  • Needle Engine Docs
  • Needle Inspector Guide
  • three.js Integration

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.

Suggest changes
Last Updated: 1/8/26, 2:38 PM