MCP server

Give your agent the architecture, not a pile of files

Inwardis keeps your systems as one hierarchical model: context, containers, components, decisions and data, each level summarising the one below. Its built-in MCP server lets an AI agent read that model layer by layer, search it, and build and correct it, while you watch the change land on the canvas. It runs on your own server.

Endpoint
POST https://<your-server>/api/v1/mcp, JSON-RPC 2.0 over HTTP (request–response)
Authentication
Authorization: Bearer ink_…, a personal API key, scoped and revocable
Hosting
Self-hosted. Part of the Inwardis server you run with Docker; your model never leaves it.
Tools
The server exposes 55 tools on a default install, listed below.

What an agent does with it

  • Reads before it writes code. One call gives the top level of a model; the agent descends only where the task needs it, instead of reading a folder of documents end to end.
  • Answers "what depends on this?" Relations and cross-project references are followed in both directions, so impact is a query, not a guess.
  • Builds and corrects the model. Create projects, elements and relations in one atomic batch, move and retype them, curate views and lay them out.
  • Checks its own picture. render_view returns the diagram as SVG with a summary of what it actually drew, so an agent can see a clipped label or a missing line.
  • Leaves a trail people can read. Every change appears in the activity feed under the key's name, the agent can leave a short note on what it did, and comments go both ways.

Connect your agent

  1. Run Inwardis (download, or start a 30-day trial).
  2. In the app, open the user menu → API Keys… and create a key. The dialog shows the ready-made command with your server's address filled in.
  3. Add the server to your client with one of the snippets below. Use one key per client, so one can be revoked without breaking the other.

Claude Code

claude mcp add --transport http inwardis https://<your-server>/api/v1/mcp \
  --header "Authorization: Bearer ink_…"

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "inwardis": {
      "url": "https://<your-server>/api/v1/mcp",
      "headers": { "Authorization": "Bearer ink_…" }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "inwardis": {
      "type": "http",
      "url": "https://<your-server>/api/v1/mcp",
      "headers": { "Authorization": "Bearer ink_…" }
    }
  }
}

Any other client that speaks MCP over HTTP with a custom header works the same way. Start the session by calling learn: the server teaches the agent how the model is organised and how to read it level by level. The Inwardis VS Code extension is separate from the MCP server: it mounts the model as folders and files for you, and ships with the product.

The tools

Grouped by what they are for. Your client shows each tool's full description after connecting.

Understand

learn, project_brief, model_health, list_projects, read_project_tree, read_element, list_views, read_view, search_elements, resolve_elements, list_templates, get_template, list_layouts

Build and correct

create_project, update_project, delete_project, create_element, update_element, delete_element, create_relation, update_relation, delete_relation, apply_changes

Views and pictures

create_view, update_view, delete_view, create_sub_view, add_elements_to_view, remove_elements_from_view, add_relations_to_view, remove_relations_from_view, apply_layout, render_view

Awareness and review

get_changes, my_recent_activity, record_session_note, add_comment, list_comments, resolve_comment

History and git

list_versions, get_version_diff, create_version, restore_version, import_git_repository, join_git_repository

Import, export and templates

import_model, export_model, create_template, update_template, clone_template, create_knowledge_kit, list_attachments, get_attachment, add_attachment, delete_attachment

What the key can and cannot do

  • It acts as you. A key sees exactly the projects its owner can see, and can do nothing its owner's login cannot.
  • It is scoped and revocable. Read, write and action scopes are separate; an administrator sees and can revoke every key.
  • It is rate-limited. Per key, with limits the operator sets.
  • Nothing leaves your server. The MCP server is part of your installation. Which agent you connect, and where it runs, is your decision.
  • It can be switched off. A fresh installation has no keys, so the endpoint grants nothing until someone creates one; an administrator can also turn the endpoint off entirely.

Try it with your own agent

The 30-day trial has every feature, the MCP server included. Questions or a client that does not connect? Tell us on the public tracker.