Skip to main content
Glama
archicad-tapir-mcp

archicad-tapir-mcp

by psxcode

Archicad Tapir MCP

An agent-friendly, read-only-first MCP bridge for Archicad and the Tapir Add-On.

Project continuity

The current read-only MCP surface includes:

  • archicad_discover — low-level endpoint diagnostics.

  • archicad_instances — human-readable project cards and stable runtime IDs.

  • archicad_bind — sticky target context from a project hint, candidate, or witnessed foreground intent.

  • archicad_capabilities — in-band workflow and coverage guidance.

  • archicad_capture_context — fresh semantic observation with focus parts.

  • archicad_inspect — progressive expand of snapshot-scoped handles.

  • archicad_spatial_map — character-grid orientation for a sheet/marquee/zone.

  • archicad_read — up to 20 safe low-level reads; returns/revalidates context.

Related MCP server: Archicad MCP Server

Requirements

  • Node.js 24+

  • npm

  • Windows production environment

  • Archicad on the same Windows machine

  • Tapir installed in Archicad

The current repository can still be developed and tested from WSL2, but the production MCP process is intended to run natively on Windows.

Setup

npm install
npm run build
npm test

Probe Archicad

Start Archicad completely, then run:

npm run probe

Discovery tries, in order:

  1. ARCHICAD_HOST when explicitly configured for development;

  2. 127.0.0.1, which is the normal Windows production route;

  3. the default WSL2 gateway when running the development probe from WSL.

To force the Windows host during WSL development:

ARCHICAD_HOST=172.20.112.1 ARCHICAD_PORTS=19723-19743 npm run probe

The WSL gateway/LAN route is development-only. Do not make production behavior depend on it.

Run the MCP server

Run the production service from Windows PowerShell:

npm run build
node C:\path\to\archicad-tapir-mcp\dist\index.js

Example local MCP configuration:

{
  "mcpServers": {
    "archicad": {
      "command": "node",
      "args": [
        "C:\\path\\to\\archicad-tapir-mcp\\dist\\index.js"
      ]
    }
  }
}

The server writes protocol messages only to stdout and diagnostics to stderr.

End-to-end test with OpenCode

OpenCode is the local agent used to prove MCP tool descriptions are enough for discovery and observation. You play the engineer: give a task in plain language. OpenCode must choose the MCP calls. Full runbook, prompts, and pass/fail rules: docs/OPENCODE.md.

cd C:\Users\psxcode\Documents\Archicad
npm run build
opencode mcp list
opencode run -m lmstudio/openai/gpt-oss-20b --auto --title "e2e-smoke" "List open Archicad projects using only Archicad MCP tools."

Requires OpenCode (WinGet), LM Studio with a loaded model, and Archicad/Tapir on localhost. Record new live outcomes in docs/EXPERIMENTS.md.

Current read actions

archicad_read accepts a requests array with:

  • product_info

  • tapir_version

  • project_info

  • current_window

  • selection_summary

  • selected_elements

  • all_elements

Every first operation may include a project hint or explicit instanceId. When the evidence is strong, the server binds and returns an opaque contextId in the same call. Reuse that context in later operations. With multiple weak or tied candidates, the server returns project cards and asks the agent to select a card or have the user foreground the intended Archicad; it never guesses from Z-order alone.

Scope

This version makes no changes to an Archicad project. Mutation tools, context snapshots, event indexing, rendering, and semantic operations will be added only after the live connection and Tapir response shapes are recorded and tested.

Available Tools

8 tools
archicad_bindBind this agent task to an Archicad projectA

Create or replace a sticky target context. Prefer a project hint for saved projects, an explicit instanceId from candidate cards when the semantic relation is clear, or useRecentForeground only after the user explicitly foregrounded 'this Archicad'. If ambiguous, show candidates and ask the user to foreground the intended Archicad. Carry the returned contextId in every later operation.

Inputs: hint, timeoutMs, instanceId, confirmAlias, +1 more.

archicad_capabilitiesExplain the Archicad agent workflowA
Read-onlyIdempotent

Use only when unsure how Archicad tools compose or when a capture reports degraded capabilities. Returns the observation hierarchy, recommended call order, handle lifetime, and current correctness rules. It reads no project data.

Inputs: no named parameters.

archicad_capture_contextObserve the current Archicad contextA
Read-only

START HERE after binding when you need to understand words such as here, this, selected, or inside the dashed marquee. Pass target.contextId from archicad_bind; do not bind again by hint. A capture records stories (floors/namespaces) that own sheet_island and outside-sheet drawing_island / loose_fragment regions, plus active selection, marquee, and 2D viewport as independent focus parts. On FloorPlan, default operator intent is the active story (summary.activeStoryHandle): if the operator did not name a floor, stay there. Read stories[] and regionRoles first (sheets and WIP clusters are siblings). Then focusResolution — use preferredRegionHits/preferredResolution for here/this marquee; regionHits remain full multi-story XY truth. For focus questions, report preferred hits first; cards with no matching focusRelationships are not hits. Use maxRegionCards=0 when focus resolution alone is enough. Use current_database when enclosing sheet and nearby cluster/table context matters; selection is a faster exact-workset mode and may omit its surrounding sheet. Keep snapshotId and expand only relevant handles. Detected sheets and title-block fields remain candidates, not ground truth.

Inputs: scope, target, timeoutMs, explicitBounds, +1 more.

archicad_discoverDiscover Archicad instancesA
Read-onlyIdempotent

Low-level diagnostic discovery of Archicad endpoints. Prefer archicad_instances for agent routing and human-readable project cards.

Inputs: host, ports, timeoutMs.

archicad_inspectExpand one semantic observation handleA
Read-onlyIdempotent

Expand a snapshot, story, region, element-set, or detected-structure handle returned by archicad_capture_context. Always pass the matching snapshotId because handles are snapshot-scoped. Passing handle=snapshotId pages more region cards. A story_* handle returns that floor's region cards. A title_block handle returns source text candidates and inferred metadata; a table handle returns reconstructed cells with optional text angles, titleCandidates, parentRegionHandle, sections, and left-to-right fragments when a schedule is layout-split. An elements_* handle returns paged primitives. For a region, use detailLevel=card first. Recapture instead of treating an old snapshot as current project truth.

Inputs: handle (required), snapshotId (required), limit, offset, +1 more.

archicad_instancesList routable Archicad projectsA
Read-onlyIdempotent

Refresh the background registry and return concise project cards with stable runtime instance IDs, project identity, selection summary, aliases, and focus evidence. Use when a target is ambiguous; do not ask the user for a port or PID.

Inputs: timeoutMs.

archicad_readRead Archicad dataA
Read-onlyIdempotent

Low-level diagnostic reads, not the drawing-understanding workflow. Prefer archicad_capture_context and archicad_inspect for observation; never call all_elements to validate a semantic snapshot. Run up to 20 isolated reads and reuse target.contextId. all_elements/selected_elements return a count by default; request raw only when GUIDs are explicitly required and bounded. Ambiguity returns candidate cards instead of guessing. Direct host/port is development-only.

Inputs: requests (required), host, port, target, +1 more.

archicad_spatial_mapRender a character-grid map for a zoneA
Read-onlyIdempotent

Return a Doom-style text map for orientation. Default zone is the snapshot 2D viewport on the active story (D-025) when zone is omitted or empty. Agents may still pass regionHandle (sheet/cluster; scoped to that region's story), explicitBounds, or focusKind (marquee/selection/viewport). Viewport/marquee/selection/bounds maps paint active-story regions and floor-filtered BIM by default. Resolution is the long-side cell count (default 32, max 48); the short side follows the zone aspect ratio. Drafting lines, fills, text, BIM stamps (walls, columns, windows, doors, roofs, zones), and detected overlays are painted with priority overwrite. Sheet frames use # only for confirmed sheets (title/production or inner trim); drawing_island / loose_fragment outlines use - and | (same as drafting). Roof stamps use glyph R from live bounds even when Tapir type-specific roof details are still unsupported. Pass snapshotId from archicad_capture_context. Prefer regionHandle when the operator names a specific sheet or cluster. This is a secondary navigation aid; inspect handles for exact geometry.

Inputs: snapshotId (required), zone, target, enrichBim, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a distinct purpose: discovery, instance listing, capabilities checking, binding, low-level reading, context capturing, inspection, and spatial mapping. Descriptions provide clear guidance on when to use each, minimizing ambiguity.

    Naming Consistency3/5

    All tools share the 'archicad_' prefix, but the verb/noun pattern is inconsistent: some are verbs (discover, bind, read, inspect), some are nouns (instances, capabilities, spatial_map), and one is verb_noun (capture_context). This mixed style reduces predictably.

    Tool Count5/5

    With 8 tools, the server is well-scoped for its purpose—interacting with Archicad through discovery, binding, context capture, inspection, and spatial mapping. No tool seems redundant, and the count feels appropriate.

    Completeness4/5

    The tool surface covers the core workflow: discover instances, bind to one, capture context, inspect elements, and navigate via spatial map. Minor gaps might include lack of update/delete operations, but these align with the read-oriented design.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A bridge between Speckle's API and client applications that enables users to list/search projects, access model versions, and retrieve/query objects and their properties from the Speckle collaborative data hub for AEC tools.
      14
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      MCP server for Autodesk Revit (BIM) with 705+ API endpoints. Enables AI agents to create walls, place doors/windows, generate sheets, manage views, and produce construction documents via the Model Context Protocol. Uses named pipes for zero-crash Revit integration.
      22
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for Archicad automation, enabling AI assistants to run Python scripts against running Archicad instances via the Tapir JSON API for complex workflows.
      4
      202 PyPI
      8
      MIT