Skip to main content

UniFi InnerSpace MCP Server

A read-only Model Context Protocol server for UniFi InnerSpace, the floor-plan application that runs on a UniFi OS console. It lets an AI assistant read your project's floor plans, walls, placed devices, access points, switches and unplaced inventory.

PyPI License: MIT Python 3.13+

The InnerSpace server is in beta. There is no plugin for it yet: add it to your MCP client with uvx or Docker, as described below.

How it connects

InnerSpace is a separate application on the console, served under /proxy/innerspace/. This server logs in to the console with a username and password and reads through that session. The destination is the console you name, and it is the only host the server contacts.

There is no API key setting. A console's local UNIFI_API_KEY is never read or sent to InnerSpace, and an InnerSpace controller on the API server needs a username and password too. The account must be able to open the InnerSpace application, for example a Super Admin.

Install

PyPI and Docker.

# PyPI
uvx unifi-innerspace-mcp@latest
# or: pip install unifi-innerspace-mcp

# Docker
docker pull ghcr.io/sirkirby/unifi-innerspace-mcp:latest

There is no Claude Code, Codex or OpenClaw plugin for this server yet. Register it with your MCP client as shown in Claude Desktop.

Claude Desktop

Add to claude_desktop_config.json, with the password in a file only you can read:

{
  "mcpServers": {
    "unifi-innerspace": {
      "command": "uvx",
      "args": ["unifi-innerspace-mcp@latest"],
      "env": {
        "UNIFI_INNERSPACE_HOST": "192.168.1.1",
        "UNIFI_INNERSPACE_USERNAME": "innerspace-reader",
        "UNIFI_INNERSPACE_PASSWORD_FILE": "/Users/you/.config/unifi-mcp/innerspace-password"
      }
    }
  }
}

Use the _FILE or _COMMAND form rather than putting the password itself in the config file.

Without a host the server still starts. It answers the client in setup mode, offers only innerspace_setup_status, explains what to set, and makes no request. With a host that cannot be reached, it serves its tools anyway and each call returns fixed text until the console answers; the next call after that logs in once and succeeds.

Install from source

For development, run it from a checkout. You need uv and Python 3.13 or later.

git clone https://github.com/sirkirby/unifi-mcp.git
cd unifi-mcp
uv sync
export UNIFI_INNERSPACE_HOST=192.168.1.1
export UNIFI_INNERSPACE_USERNAME=innerspace-reader
export UNIFI_INNERSPACE_PASSWORD_FILE="$HOME/.config/unifi-mcp/innerspace-password"
uv run --package unifi-innerspace-mcp unifi-innerspace-mcp

Configure

Set these variables in the server's process environment. The server does not load .env files from the working directory.

Variable Default Purpose
UNIFI_INNERSPACE_HOST (or UNIFI_HOST) none Console address. Without it the server starts in setup mode and makes no request.
UNIFI_INNERSPACE_USERNAME, UNIFI_INNERSPACE_PASSWORD none Console login. _FILE and _COMMAND forms follow the shared credential provider rules.
UNIFI_INNERSPACE_PORT 443 Console HTTPS port.
UNIFI_INNERSPACE_VERIFY_SSL false Verify the console certificate.
UNIFI_INNERSPACE_SSL_FINGERPRINT (or UNIFI_SSL_FINGERPRINT) none Pin the console certificate by SHA-256 fingerprint.
UNIFI_INNERSPACE_REDACT_SENSITIVE_FIELDS true Redact secret-looking fields in responses.
UNIFI_TOOL_REGISTRATION_MODE lazy lazy, eager or meta_only.

With certificate checks off, the server logs one warning at its first connection. Pin the certificate or turn verification on; see TLS verification. The full list, including HTTP, diagnostics and tracing, is in docs/configuration.md.

HTTP is opt-in, listens on port 3005 by default, and takes a bearer token from UNIFI_INNERSPACE_MCP_HTTP_AUTH_TOKEN (or its _FILE form). The floor plans describe a building, so set a token before serving HTTP to anything but loopback. The opt-in innerspace Docker Compose profile builds the image from a checkout; see Docker Compose.

Features

Nine domain tools, all read-only. See docs/tools.md.

Tool What it returns
innerspace_get_status Whether InnerSpace is installed and running on the console, its version and any update
innerspace_get_project The project: title, floor plans with scale, wall types; optionally every shape
innerspace_list_floor_plans Floor plans with scale, image size and the image's scale and offset
innerspace_list_walls The walls of one floor plan
innerspace_list_placed_devices Devices placed on one floor plan, with position and height
innerspace_list_access_points Access points with position, height, azimuth and mount
innerspace_list_switches Switches with position
innerspace_list_inventory Adopted devices not yet placed on a plan
innerspace_get_plan_asset One plan's image metadata and its resource URI; optionally the image, capped

A floor plan's image is available as an MCP resource, fetched on demand: innerspace://plans/{plan_id}/image for a PNG, innerspace://plans/{plan_id}/image.jpg for a JPEG. innerspace_get_plan_asset returns the right URI.

IDs returned here belong to the InnerSpace tool family. They are not the ids the Network, Protect, Access or Site Manager servers use, and there is no translation between them.

Not supported: any write, support bundle, events or websocket stream, and reading anything outside InnerSpace. Placing, moving or editing devices and walls is not available. Presence of the application is checked at the first read, not probed at startup.

There is no support bundle: the bundle is one closed schema shared by the Network, Protect and Access servers, so adding a product changes that contract. Report an InnerSpace problem with the details in Reporting a problem.

The same nine reads are also available through unifi-api-server, which never returns plan image bytes.

Documentation

Development

cd apps/innerspace
make test         # Run tests
make lint         # Lint
make format       # Format
make manifest     # Regenerate tools_manifest.json
make run          # Run the server locally (lazy mode)
make pre-commit   # Format, manifests, lint and test

See the root CONTRIBUTING.md for the full monorepo workflow.

License

MIT

Metadata

Release files for unifi-innerspace-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unifi-innerspace-mcp 0.1.1
File Size Uploaded Provenance Actions
unifi_innerspace_mcp-0.1.1.tar.gz 22.0 kB With provenance Details for unifi_innerspace_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unifi-innerspace-mcp 0.1.1
File Interpreter ABI Platform Actions
unifi_innerspace_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for unifi_innerspace_mcp-0.1.1-py3-none-any.whl

Total release size: 51.2 kB

Release files / unifi_innerspace_mcp-0.1.1.tar.gz

Download URL unifi_innerspace_mcp-0.1.1.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
10f4a77e4ef1ee805f7cb79959f2505647bc0d807e4eb045648471006dc9616c
BLAKE2b-256 checksum
How to use checksums
ba924b5a51038422d05f26071f143658d0b0f8d8b170bb3e96dcdda9b29051fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / unifi_innerspace_mcp-0.1.1-py3-none-any.whl

Download URL unifi_innerspace_mcp-0.1.1-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1532bf92f3260e9b092c45b85fa81a26b1a7f006efc470b4c07c9a1ad6ca779
BLAKE2b-256 checksum
How to use checksums
ccd95371e5d55f81e8fc8d4656704ac1d2d68dff87a70d4c43e29ed65f0498fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for unifi-innerspace-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unifi_innerspace_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page