Archicad Tapir MCP Server
This project provides a Model Context Protocol (MCP) server for Archicad. It acts as a bridge, allowing AI agents and applications (like Claude for Desktop) to interact with running Archicad instances by wrapping both the community-driven Tapir API and the official Archicad JSON API.
The server dynamically generates a comprehensive set of 191+ MCP tools from the combined API schemas, enabling fine-grained control over Archicad projects.
Key Features
- Pydantic-Powered Runtime Validation & Schema Generation: Every tool's input and output shapes are backed by rigorous Pydantic models. The server dynamically compiles these into detailed JSON Schemas for the AI agent to inspect, and strictly validates all incoming tool arguments at runtime before forwarding them to Archicad. It handles complex models, Union types, and TypeAliases seamlessly.
- Progressive Tool Discovery (CLI-style): The server uses a deterministic workflow (
archicad_list_commandsandarchicad_get_command_schema) that allows AI agents to list available commands and fetch exact parameter schemas on demand. This avoids flooding the model's context window with large schemas. - No Heavy Machine-Learning Dependencies: Vector-based search has been removed. The server no longer requires heavy packages like PyTorch,
faiss-cpu, orsentence-transformers, dramatically reducing the package size and eliminating server startup delays. - Massive Toolset, Minimal Footprint: Provides access to a unified toolset of 191+ commands by merging the community Tapir API and the official Archicad JSON API.
- Flexible Network Transports: Supports
sse(Server-Sent Events) andstreamable-httptransports in addition to standard input/output (stdio), allowing the server to be run on remote host configurations. - Bearer Token Authentication: Secures HTTP endpoints when using SSE or Streamable-HTTP via an opt-in token validation middleware (
--tokenflag orTAPIR_MCP_TOKENenvironment variable). - Multi-Instance Control: Connect to and manage multiple running Archicad instances simultaneously, targeting commands to specific instances via port numbers.
- Cross-Platform Support: Compatible with both Windows and macOS systems.
Installation & Setup
Follow these steps to get the server running and connected to an MCP client like Claude for Desktop.
1. Prerequisites
- Python 3.12+ and
uv: Ensure you have a modern version of Python and theuvpackage manager installed. - Archicad & Tapir Add-On: You must have Archicad running (which includes the official JSON API). To access the full set of community-developed tools, the Tapir Archicad Add-On must also be installed.
- MCP Client: An application that can host MCP servers, such as Claude for Desktop or Gemini CLI.
2. Configure Your AI Client
Open your client's config.json file and add the following configuration. This command works across operating systems:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ArchicadTapir": {
"command": "uvx",
"args": [
"--from",
"tapir-archicad-mcp",
"archicad-server"
]
}
}
}
Configuration Options
You can customize the server via CLI flags or environment variables:
| CLI Flag | Environment Variable | Default | Description |
|---|---|---|---|
--transport |
- | stdio |
Transport protocol to use (stdio, sse, or streamable-http) |
--host |
TAPIR_MCP_HOST |
127.0.0.1 |
Bind address for HTTP-based transports |
--port |
TAPIR_MCP_PORT |
8000 |
Bind port for HTTP-based transports |
--token |
TAPIR_MCP_TOKEN |
None |
Optional Bearer token to secure HTTP endpoints |
Usage
-
Restart Claude for Desktop to apply configuration changes.
-
Ensure at least one instance of Archicad is running.
-
The client will initially have access to a small set of core tools. Start by asking the AI to find running Archicad instances:
"Can you check what Archicad projects I have running?"
The AI will call
discovery_list_active_archicadsand report the active instances and theirportnumbers. -
State your main goal:
"Using port 19723, get all the Wall elements from the project."
-
The AI will execute a progressive discovery and calling loop:
- Step 1: It queries
archicad_list_commandsto look up the correct command name for the requested action (identifyingelements_get_elements_by_type). - Step 2: It calls
archicad_get_command_schemawith the target command name to retrieve the exact required JSON parameter structure. - Step 3: It calls
archicad_call_toolwith the command name, the targetedport, and the required parameter payload.
- Step 1: It queries
How It Works
The server operates through a layered architecture:
- AI Agent (e.g., Claude): Interprets user prompts and orchestrates tool discovery.
- MCP Client (e.g., Claude for Desktop): Manages the server process and handles communication.
- MCP Server (This Project): Standardizes tool descriptions, parameters, and results, presenting a clean
list/schema/callinterface. multiconn_archicadLibrary: Resolves active socket connections and handles low-level command dispatch to Archicad instances.- Archicad & Tapir Add-On: Built-in APIs and Tapir Add-on execute commands and return structured data.
Contributing
Contributions are welcome! Please feel free to submit an issue or open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tapir_archicad_mcp-0.5.1.tar.gz.
File metadata
- Download URL: tapir_archicad_mcp-0.5.1.tar.gz
- Upload date:
- Size: 229.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e00aeef7ff2225773f91719d84d340e57e2089093a72868fda4a176eb14eaef
|
|
| MD5 |
efbae89c91a74aeed00c8fc5b6cb913a
|
|
| BLAKE2b-256 |
16f0af04afa737205c1fb94839b38ab09d751914b6d57756750fc6d7ff76200c
|
File details
Details for the file tapir_archicad_mcp-0.5.1-py3-none-any.whl.
File metadata
- Download URL: tapir_archicad_mcp-0.5.1-py3-none-any.whl
- Upload date:
- Size: 68.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed45dd697cdc360fe025ae58476e6365680f75903f5df30fc0078a7cdbda37ab
|
|
| MD5 |
7b327b66e15a1149b431b298a37485f1
|
|
| BLAKE2b-256 |
b210789f701ca42ce7003dfd53726d744b5ebf683d0d3b37e91fd5eca978a4cf
|