Skip to main content

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 both the community-driven Tapir API and the official Archicad JSON API.

The server dynamically generates a comprehensive set of 137 MCP tools from the combined API schemas, enabling fine-grained control over Archicad projects.

License: MIT Status

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_tools function 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 a unified toolset of 137 commands (and growing) by intelligently merging the community Tapir API and the official Archicad JSON API, 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-transformers and faiss-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 the uv package manager installed. You can install uv with pip install uv.
  • 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

This is now the only step required. Open your client's config.json file and add the following configuration. This command is universal and works on any operating system without modification.

  • 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"
        ]
    }
  }
}

How This Works: The uvx command (part of the uv toolchain) is a powerful utility that automatically handles the entire process for you:

  1. The first time the AI client needs the tool, uvx will download the latest version of tapir-archicad-mcp from PyPI.
  2. It will install it into a temporary, isolated environment.
  3. It will run the server.

Usage

  1. Restart Claude for Desktop to apply the configuration changes.

  2. Ensure at least one instance of Archicad (with Tapir) is running.

  3. 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_archicads and report the active instances and their port numbers.

  4. Now, state your main goal. For example:

    "Okay, using port 12345, get all the Wall elements from the project."

  5. The AI will now perform the two-step discover/call workflow:

    • First, it will call archicad_discover_tools with a query like "get all wall elements". The server's semantic search will find that the best match is the elements_get_elements_by_type tool.
    • Second, it will call archicad_call_tool, using the name="elements_get_elements_by_type" it just discovered and constructing the necessary arguments (including the port and params with elementType="Wall").
    • The final result is returned to you.

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.
  • MCP Server (This Project): Provides an intelligent abstraction layer over Archicad's automation APIs, exposing a simple discover/call interface.
  • multiconn_archicad Library: The underlying Python library that handles the low-level communication with Archicad instances.
  • Archicad & Tapir Add-On: Archicad's built-in JSON API and the Tapir Add-on execute 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

tapir_archicad_mcp-0.4.2.tar.gz (255.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tapir_archicad_mcp-0.4.2-py3-none-any.whl (65.9 kB view details)

Uploaded Python 3

File details

Details for the file tapir_archicad_mcp-0.4.2.tar.gz.

File metadata

  • Download URL: tapir_archicad_mcp-0.4.2.tar.gz
  • Upload date:
  • Size: 255.8 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

Hashes for tapir_archicad_mcp-0.4.2.tar.gz
Algorithm Hash digest
SHA256 27fdcf52f9171c1630091a4e3d5c83eb9da7069b7c3ee7f2e27d0c514101ec4c
MD5 629bc4e3904c4d2748b954742f5a32f3
BLAKE2b-256 66deffad55322a2d805a63a2a8280d7954f6ec655fcdf611b2978d50981069f1

See more details on using hashes here.

File details

Details for the file tapir_archicad_mcp-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: tapir_archicad_mcp-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 65.9 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

Hashes for tapir_archicad_mcp-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48688218f82e9f64914c9ae74e602afc5fd4dad0461a102a42b5fb844fe53784
MD5 b80fc94037325de420e7235010627605
BLAKE2b-256 d93da61cf5a673f04213550ae045359b6cbab4b16d47d3c7098f83cda09b3677

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page