docs
Getting Started
Tutorials
How-To Guides
Explanation
Reference
Help
Getting Started
Tutorials
How-To Guides
Explanation
Reference
Help

Needle Logo + MCP Logo

Needle MCP Server — Local AI for Needle

Talk to your AI assistant about your local and online 3D scenes! Connect Claude, Cursor, or other AI tools to the Needle MCP Server so you can explore your three.js scenes, edit objects, and get help — all through natural conversation.

Quick Start

  1. Connect your AI assistant to the Needle MCP Server.
  2. Start asking questions about Needle Engine, your project, or your 3D scenes!

Works with your favorite AI tools

Works with Claude Desktop, Cursor, VS Code Copilot, Antigravity, and more.

What Can You Do with the Needle MCP?

"How do I add physics to my Needle project?"
"Show me how to use WebXR in Needle Engine"
"What's the best way to deploy to Vercel?"
"Show me all the lights in my scene"
"Change the main light color to warm orange"
"Why is my scene running slowly?"

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!

Codex Logo Using OpenAI Codex CLI

Quick setup:

  1. Open your terminal and run:

    codex mcp add needle --url http://localhost:8424/mcp
  2. Start using Codex — it will automatically connect to the Needle MCP server!

VS Code Logo Using VS Code

Quick setup:

  1. Click to Install Needle MCP in VS Code

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

Local server setup (for Inspector integration)

If you want your AI to also interact with live 3D scenes via the Needle Inspector, connect to the local server instead:

  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

See Connection Modes for more details.

Cursor Logo Using Cursor

Quick setup:

  1. Click to Install Needle MCP in Cursor

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

  3. Just ask naturally — Cursor will use Needle tools automatically!

Local server setup (for Inspector integration)

If you want your AI to also interact with live 3D scenes via the Needle Inspector, connect to the local server instead:

  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

See Connection Modes for more details.

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!

Built-in Tools

The Needle MCP Server comes with built-in tools that are always available, even without the Inspector.

ToolDescription
SearchSearch Needle Engine docs, forum posts, and community discussions by semantic similarity.
Load Needle SkillLoad the Needle Engine skill with coding guidelines, patterns, and API references.
Get Project PathGet the path to the currently opened Unity or Blender project.
Get Scene PathGet the path to the currently opened scene.
Get Web Project PathGet the path to the Needle Engine web project directory.
Get Log PathGet the path to the Unity or Blender editor log file.
Read FileRead a file from the editor or web project, with optional line range and text filter.
Search FilesSearch project files by regex pattern, with optional glob and result limit.
List FilesList files in the project directories, with optional glob pattern and recursion.
Read LogRead or search the editor log file by keyword.
Read glTF / GLBSummarize a glTF/GLB file — nodes, meshes, materials, animations, extensions. Supports JSON pointer queries.

BlenderBlender Tools

When you're using the Needle Blender add-on, it also registers Blender-specific MCP tools. This means your AI can do more than just read files: it can inspect your Blender scene structure and help make targeted changes.

ToolWhat it does
Hierarchy SearchSearch the Blender hierarchy by name or object type, optionally including Needle components.
Object DetailsInspect object details including transforms, mesh stats, materials, modifiers, constraints, visibility, and Needle components.
Selected ObjectsRead the current Blender selection, optionally with full object details.
Object SelectionSelect one or more Blender objects by name and set the active object.
Scene SettingsRead Needle scene settings such as compression, XR, networking, rendering, and export-related options.
Add ComponentAdd a Needle component to a Blender object and optionally set initial properties.
Component PropertiesChange one or more properties on an existing Needle component.
Object TransformMove, rotate, and scale Blender objects.

Try prompts like:

  • "Show me all cameras in my Blender scene"
  • "What Needle components are on the selected objects?"
  • "Add OrbitControls to the main camera"
  • "Set the BoxCollider size on Cube to match the mesh"
  • "Which materials on this object use image textures?"

Blender + AI

If you've seen AI tools announce Blender support recently: Needle already provides this workflow. Start the Blender add-on, connect Claude, Copilot, Cursor, or OpenAI/Codex to Needle MCP, and your AI can work with real Blender scene context. You can also open Needle Cloud AI directly from Blender via Ask AI about Project.

Additional Tools when using Needle Inspector

When you have the Needle Inspector open in Chrome, additional tools become available for interacting with 3D scenes:

  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.

See Needle Inspector for Chrome for details on the Inspector tools and capabilities.

Advanced: Connection Modes

The Needle MCP Server supports two connection modes. Both provide the full set of tools. The main difference is how they run.

Local Server (HTTP/SSE)

npx needle-cloud start

Runs a persistent local server on localhost:8424. Your AI client connects via HTTP.

If you're using Needle Engine for Unity or Blender, the local server is usually already running on your machine — the editor integrations start it automatically. See the setup instructions above to connect your AI client.

stdio

npx needle-cloud mcp

Your AI client spawns the process directly — no server to start or keep running.

To use stdio mode, configure your AI client with:

{
  "mcpServers": {
    "needle": {
      "command": "npx",
      "args": ["-y", "needle-cloud", "mcp"]
    }
  }
}

Looking for something else?

  • AI for Needle Engine — Coding skills, prompt files, and AI workflows
  • Needle Inspector for Chrome — Chat with your AI about live 3D scenes
  • three.js Integration — Using Needle with any three.js project
Suggest changes
Last Updated: 4/28/26, 6:02 PM

Extras

Needle AI Ask Needle AI
Copy Markdown

Navigation

  • Getting Started
  • Tutorials
  • How-To Guides
  • Explanation
  • Reference
  • Help

Extras

Needle AI Ask Needle AI
Copy Markdown