An MCP server that enables AI agents to automate Archicad using natural language via intelligent, semantic tool discovery.
Project description
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 the powerful Tapir JSON API.
The server dynamically generates a comprehensive set of over 80 MCP tools from the Tapir API schema, enabling fine-grained control over Archicad projects.
Disclaimer: This project is in an early stage of development. It has not been extensively tested and is intended primarily for experimental and educational purposes. Interfaces and functionality may change in future updates. Please use with caution.
Key Features
- Intelligent Tool Discovery: The server exposes a simple
discover_toolsfunction that uses a powerful local semantic search engine to find the most relevant Archicad command from a user's natural language query. - Massive Toolset, Minimal Footprint: Provides access to the entire Tapir API (80+ commands, expanding to 160+) without overwhelming the AI's context window.
- 100% Local & Private Search: The semantic search index is built and runs entirely on your machine using
sentence-transformersandfaiss-cpu. No data ever leaves your computer, and no API keys are required. - Adaptive & Relevant Results: Search uses a sophisticated "Top-Score Relative Threshold" to filter out noise and return only the most relevant tools for a given query.
- Multi-Instance Control: Connect to and manage multiple running Archicad instances simultaneously.
- Robust & Packaged: Designed as a proper Python package with a
pyproject.toml, enabling simple and reliable installation.
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. You can installuvwithpip install uv. - Archicad & Tapir Add-On: You must have Archicad running with the Tapir Archicad Add-On installed. The server cannot function without it.
- MCP Client: An application that can host MCP servers, such as Claude for Desktop.
2. Clone the Repository
Get the project code on your local machine:
git clone https://github.com/your-username/archicad-mcp-server.git
cd archicad-mcp-server
3. Install Dependencies
Create a virtual environment and install the required Python packages using uv.
# Create and activate the virtual environment
uv venv
# On macOS/Linux
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
# Install dependencies from pyproject.toml
uv sync
4. Configure Claude for Desktop
Finally, tell Claude how to run your server. Open your claude_desktop_config.json file and add the following configuration.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"Tapir_Archicad": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/your/archicad-mcp-server",
"server.py"
]
}
}
}
Important: You must replace "/path/to/your/archicad-mcp-server" with the full, absolute path to the directory where you cloned the project.
Usage
-
Restart Claude for Desktop to apply the configuration changes.
-
Ensure at least one instance of Archicad (with Tapir) is running.
-
The client will now have access to a small set of core tools. Start by asking it to find the running Archicad instances:
"Can you check what Archicad projects I have running?"
The AI will run
discovery_list_active_archicadsand report the active instances and theirportnumbers. -
Now, state your main goal. For example:
"Okay, using port 12345, get all the Wall elements from the project."
-
The AI will now perform the two-step
discover/callworkflow:- First, it will call
archicad_discover_toolswith a query like"get all wall elements". The server's semantic search will find that the best match is theelements_get_elements_by_typetool. - Second, it will call
archicad_call_tool, using thename="elements_get_elements_by_type"it just discovered and constructing the necessaryarguments(including theportandparamswithelementType="Wall"). - The final result is returned to you.
- First, it will call
How It Works
The server operates through a layered architecture:
- AI Agent (e.g., Claude): Interacts with the user and decides which tools to call.
- MCP Client (e.g., Claude for Desktop): Manages the server process and communication.
- Archicad Tapir MCP Server (This Project): Provides an intelligent abstraction layer over the Tapir API, exposing a simple
discover/callinterface. multiconn_archicadLibrary: The underlying Python library that handles the low-level communication with Archicad instances.- Archicad & Tapir Add-On: The final destination that executes the commands.
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.
Project 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.2.0.tar.gz.
File metadata
- Download URL: tapir_archicad_mcp-0.2.0.tar.gz
- Upload date:
- Size: 263.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c00f60f0f07f99c67d7586b5374e165c5e642f23aef6cf95e5f6fa0d09b6f6d
|
|
| MD5 |
f1645e315ac1bcff90da08db3a5c3a0b
|
|
| BLAKE2b-256 |
289722ef46412053abed88bfe5bdceeb0dafabe39d248139f6d0e06e0712d575
|
File details
Details for the file tapir_archicad_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tapir_archicad_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
918a18927109fa5e03bc2241ad860133b3248091d9de82a5ad7c3bec5dd3fa1e
|
|
| MD5 |
3daf8200e933744793f491b22ad4dc78
|
|
| BLAKE2b-256 |
a573cd8e7f552d732866e158bf7a31951181c27e9e425b751e64de0514561c0a
|