Civil 3D MCP

An MCP server for interacting with Autodesk Civil 3D, requiring a companion plugin and Node.js 18+.

{{ message }}

barbosaihan / civil3d-mcp Public

  • Notifications
  • Fork0
  • Star 1

AI-Powered Civil 3D Modeling

MIT license

1 star0 forksBranches Tags Activity

Star

Notifications

civil3d-mcp

BranchesTags

Go to file

Code

NameNameLast commit messageLast commit date
41 Commits
assetsassets
srcsrc
.gitignore.gitignore
LICENSELICENSE
README.mdREADME.md
README_zh.mdREADME_zh.md
package-lock.jsonpackage-lock.json
package.jsonpackage.json
tsconfig.jsontsconfig.json
View all files

Repository files navigation

MseeP.ai Security Assessment Badge

civil3d-mcp

English | 简体中文

Description

civil3d-mcp allows you to interact with Autodesk Civil 3D using the MCP protocol through MCP-supported clients (such as Claude, Cline, etc.).

This project is the server side (providing Tools to AI), and you need to use a Civil 3D MCP plugin (driving Civil 3D) in conjunction.

Join Discord | QQ Group

Features

  • Allow AI to get data from the Civil 3D project
  • Allow AI to drive Civil 3D to create, modify, and delete elements
  • Send AI-generated code to Civil 3D to execute (may not be successful, successful rate is higher in some simple scenarios with clear requirements)

Requirements

  • nodejs 18+

Complete installation environment still needs to consider the needs of the Civil 3D MCP plugin, please refer to its documentation.

Installation

1. Build local MCP service

Install dependencies

npm install

Build

npm run build

2. Client configuration

Claude client

Claude client -> Settings > Developer > Edit Config > claude_desktop_config.json

{ "mcpServers": { "civil3d-mcp": { "command": "node", "args": ["\build\index.js"] } } }

Restart the Claude client. When you see the hammer icon, it means the connection to the MCP service is normal. (example shows Civil 3D, will be Civil 3D)

claude

Framework

flowchart LR CladueDesktop --> civil3d-mcp --> SocketService--commandName-->CommandlSet--command-->CommandExecute CommandManager --> CommandlSet CommandExecute --executeResult--> SocketService CommandProject1 --> CommandManager CommandProject2 --> CommandManager CommandProject... --> CommandManager subgraph ide1 [MCPClient] CladueDesktop end subgraph ide2 [MCPServer] civil3d-mcp end subgraph ide3 [Civil 3D] subgraph ide3.1 [civil3d-mcp-plugin] SocketService CommandlSet CommandManager CommandExecute end end

Supported Tools

NameDescription
get_drawing_infoRetrieves basic information about the active Civil 3D drawing.
list_civil_object_typesLists major Civil 3D object types available or present in the current drawing (e.g., Alignments, Surfaces).
get_selected_civil_objects_infoGets basic properties of currently selected Civil 3D objects. Can limit the number of returned objects.
create_cogo_pointCreates a new COGO (Coordinate Geometry) point in the Civil 3D drawing.
create_line_segmentCreates a simple line segment in the Civil 3D drawing.

About

Readme

MIT license

Activity

1 star

0 watching

0 forks

Report repository

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%

Related Servers