MCP cover image

.NET MCP服务器与Claude Desktop和AEC数据模型API连接

1

Github Watches

0

Github Forks

2

Github Stars

Platforms .NET License oAuth2 Data-Management AEC-Data-Model

aps-aecdm-mcp-dotnet

.NET MCP Server to connect with Claude Desktop, AEC Data Model API and the Viewer.

Introduction

This sample started as an experiment with the new Model Context Protocol brought as a challenge during one of our Autodesk Platform Accelerators. Special thanks to Mirco Bianchini for bringing this challenge and contributing to get to the solutions presented in this repo.

Prerequisites

To make this work, you'll need to:

  • Download and Install Claude Desktop
  • Clone or download this repo
  • Build this project
  • Add a reference to the .csproj in the Claude configuration file (developers resource)

DEMO VIDEO HERE

How it works

This sample creates an MCP server using the ModelContextProtocol .NET SDK.

In this scope we added 4 main tools to our server:

  1. GetToken to obtain a PKCE token that is used in the APS API requests.
  2. GetHubs to retrieve the hubs using the AEC Data Model API
  3. GetProjects to retrieve the projects using the AEC Data Model API
  4. GetElementGroupsByProject to retrieve the ElementGroups using the AEC Data Model API
  5. GetElementsByElementGroupWithCategoryFilter to retrieve the elements from one ElementGroup using a category filter.
  6. RenderModel to render one design with the Viewer
  7. HighLightElements to highlight elements in the Viewer.

With these tools, you can use natural language to query the data from your elementgroups using the AEC Data Model API.

This is a first experiment with this new protocol. Feel free to submit suggestions and collaborate to this repo so we can improve its functionalities.

Setup

Running locally

Clone this project or download it. It's recommended to install GitHub desktop. To clone it via command line, use the following (Terminal on MacOSX/Linux, Git Shell on Windows):

git clone https://github.com/joaomartins-callmejohn/aps-aecdm-mcp-dotnet

Visual Studio (Windows):

Replace client_id with your own key (Single Page application). You can do it directly in the 'Properties/lauchSettings.json' file or through Visual Studio UI under the debug properties.

You'll need to add a reference to your MCP server in the claude_desktop_congif.json file

{
    "mcpServers": {
      "aecdm": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "C:\\Users\\...mcp-server-aecdm.csproj",
                "--no-build"
            ]
        }
    }
}

Further Reading

Troubleshooting

  1. Can't find my hub: Provision your APS app in your ACC hub

  2. If you made changes to the code and want this to be reflected in Claude, you'll need to end the CLaude task before rebuilding the solution.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

João Martins in/jpornelas

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

    Reviews

    2 (1)
    Avatar
    user_bZakpz7W
    2025-04-16

    The Reader Server by xinthink has significantly improved my workflow. Its intuitive design and seamless integration with MCP applications make accessing and processing information effortless. The server's reliable performance and user-friendly interface ensure a smooth experience. Highly recommend for anyone looking to enhance their reading efficiency!