KA

kpphillips/aps-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 7 forks 质量 67 趋势 0GPL-3.0

集成Autodesk API 的简单MCP服务器原型

概览

一个通过APS工具包集成Autodesk ACC API的最小MCP服务器。 2. 将 .env.sample 复制到 .env 并填写你的资历: 3. 创建并激活虚拟环境: 1. 将 .env.sample 复制到 .env 并填写你的资质: 2. 创建并激活虚拟环境: 要将此 MCP 服务器与 Claude Desktop 一起使用: 1. 确保你安装了Claude Desktop(从 Claude.ai 下载) 2.打开你的Claude Desktop配置文件:如果不存在就创建它。 用通往环境和项目的绝对路径替换路径。

概述(AI 翻译)

一个通过APS工具包集成Autodesk ACC API的最小MCP服务器。

视频概述

布置

选项1:使用紫外线(推荐)

  1. 如果你没有UV,安装它:

  2. 将.env.sample复制到.env并填写你的凭证:

  3. 创建并激活虚拟环境:

  4. 安装依赖:

  5. 运行MCP服务器:

选项2:使用点数

  1. 将.env.sample复制到.env并填写你的资历:

  2. 创建并激活虚拟环境:

  3. 安装依赖:

  4. 运行MCP服务器:

与 Claude Desktop 的集成

要将此 MCP 服务器与 Claude Desktop 一起使用:

  1. 确保你安装了Claude Desktop(从 Claude.ai 下载)
  2. 打开你的Claude Desktop配置文件:

如果不存在,就去创造它。

  1. 添加相应配置:

选项A:直接从虚拟环境下载Python(最可靠)

用通往环境和项目的绝对路径替换路径。

选项B:使用UV

通过在终端中运行which uv,找到通往uv的绝对路径。

  1. 保存文件并完全重启 Claude Desktop
  2. 在 Claude Desktop 中寻找锤子图标以访问 ACC 工具

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

APS MCP Server

A minimal MCP server integrating Autodesk ACC APIs via APS toolkit.

Video Overview

Setup

  1. Install uv if you don’t have it:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Copy .env.sample to .env and fill in your credentials:

    cp .env.sample .env
    
  3. Create and activate a virtual environment:

    uv venv
    # On Windows:
    .venv\Scripts\activate
    # On Unix or MacOS:
    source .venv/bin/activate
    
  4. Install dependencies:

    uv pip install -r requirements.txt
    
  5. Run the MCP server:

    python aps_dm_server.py
    

Option 2: Using pip

  1. Copy .env.sample to .env and fill in your credentials:

    cp .env.sample .env
    
  2. Create and activate a virtual environment:

    python -m venv .venv
    # On Windows:
    .venv\Scripts\activate
    # On Unix or MacOS:
    source .venv/bin/activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Run the MCP server:

    python aps_dm_server.py
    

Integration with Claude Desktop

To use this MCP server with Claude Desktop:

  1. Make sure you have Claude Desktop installed (download from Claude.ai)

  2. Open your Claude Desktop configuration file:

    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    

    Create it if it doesn’t exist.

  3. Add the appropriate configuration:

    Option A: Direct Python from virtual environment (most reliable)

    {
        "mcpServers": {
            "acc": {
                "command": "/ABSOLUTE/PATH/TO/YOUR/.venv/bin/python",
                "args": [
                    "/ABSOLUTE/PATH/TO/YOUR/aps_dm_server.py"
                ],
                "env": {
                    "PYTHONPATH": "/ABSOLUTE/PATH/TO/YOUR/PROJECT/FOLDER"
                }
            }
        }
    }
    

    Replace paths with absolute paths to your environment and project.

    Option B: Using uv

    {
        "mcpServers": {
            "acc": {
                "command": "/ABSOLUTE/PATH/TO/uv",
                "args": [
                    "--directory",
                    "/ABSOLUTE/PATH/TO/YOUR/PROJECT/FOLDER",
                    "run",
                    "aps_dm_server.py"
                ]
            }
        }
    }
    

    Find the absolute path to uv by running which uv in your terminal.

  4. Save the file and restart Claude Desktop completely

  5. Look for the hammer icon in Claude Desktop to access the ACC tools

macOS Specific Setup

macOS users may encounter permission issues when integrating with Claude Desktop:

  1. Permission Issues: If you see errors like Operation not permitted in logs:
    • Open System Preferences → Privacy & Security → Full Disk Access
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "acc": { "command": "/ABSOLUTE/PATH/TO/YOUR/.venv/bin/python", "args": [ "/ABSOLUTE/PATH/TO/YOUR/aps_dm_server.py" ], "env": { "PYTHONPATH": "/ABSOLUTE/PATH/TO/YOUR/PROJECT/FOLDER" } } } }