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.

The InnerSpace server is not yet released. There is no PyPI package, container image or plugin, and this page gives no install command for one. Run it from a source checkout, 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.

Run from source

The package is not published yet. You need uv and Python 3.13 or later.

git clone https://github.com/sirkirby/unifi-mcp.git
cd unifi-mcp
uv sync

Put the console login in the environment, with the password in a file only you can read, and start the server:

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

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.

To register it with a client from a checkout, point the client at that command and pass the same variables in the entry's env block (use the _FILE form for the password):

{
  "mcpServers": {
    "unifi-innerspace": {
      "command": "uv",
      "args": ["run", "--package", "unifi-innerspace-mcp", "unifi-innerspace-mcp"],
      "cwd": "/path/to/unifi-mcp",
      "env": {
        "UNIFI_INNERSPACE_HOST": "192.168.1.1",
        "UNIFI_INNERSPACE_USERNAME": "innerspace-reader"
      }
    }
  }
}

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

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.0
File Size Uploaded Provenance Actions
unifi_innerspace_mcp-0.1.0.tar.gz 21.8 kB With provenance Details for unifi_innerspace_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 50.8 kB

Release files / unifi_innerspace_mcp-0.1.0.tar.gz

Download URL unifi_innerspace_mcp-0.1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b27ba8d7f9da83c09d345fcaeb65961d07348aa3c32cf5943cdd4b08b410ed5
BLAKE2b-256 checksum
How to use checksums
5cce4a0e8a70f0a65fde6e608ae648de448d51933c55938e52c2e231fe9c75d0
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 23, 2026.

Transparency log

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

Download URL unifi_innerspace_mcp-0.1.0-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c679d9a91a16cad7ae9666041111c965d1d7b4490f3060a1e873f9db7bd6dfd1
BLAKE2b-256 checksum
How to use checksums
94538f13a2e9a5f20dce060adff6bb42a38bba8d80b76761d08f956f148aab0f
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 23, 2026.

Transparency log

Security for unifi-innerspace-mcp 0.1.0

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.0.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 23, 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.0 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