Labsco
devlexema logo

APS AEC Data Model MCP (.NET)

from devlexema

A .NET MCP server for interacting with the Autodesk AEC Data Model API and Viewer.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

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.

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

Written by

Joรฃo Martins in/jpornelas