civil3d_executeLABSCO SUMMARY
Three tools instead of fifty, because the model writes the code.
Rather than wrapping every Civil 3D operation as its own tool, it exposes a Roslyn engine and a library of documented C# templates. The model reads a template, adapts it and sends it — read-only through the query call, committed through the execute one.
What it is
A code-execution bridge into Autodesk Civil 3D. The server speaks stdio to your client and TCP to a plugin inside Civil 3D, which compiles and runs C# with full API access and returns JSON.
What you get
- civil3d_query — runs C# read-only, with no transaction committed and no side effects on the drawing
- civil3d_execute — runs C# with write access and commits the transaction, modifying the drawing
- civil3d_skills — browses, searches and reads the skill library: documented C# templates for surfaces, alignments and station/offset, COGO points, geometry, drawing information and multi-object workflows
- Executed code receives the active AutoCAD document and the Civil document as globals, so it works against whatever is open
Requirements
Autodesk Civil 3D with the accompanying plugin loaded and listening on its local TCP port, and a drawing open for the code to act on.
Setup effort
Build from source — git clone https://github.com/barbosaihan/civil3d-mcp
USE CASES
Asking what is in the drawing you have open
Run a read-only query for the surfaces, alignments or points that exist, with no transaction committed.
Making a repetitive edit across many objects
Start from a skill template for that object type, adapt it, and commit the change in one pass instead of clicking through the list.
Learning the API for something you have not done before
Read the documented template first, then try it read-only before anything is written back.
Checking a change is right before it lands
Run the logic as a query to see what it would touch, then run the same code with write access.
3 tools
Listed in project docs. Your client may show a different list.
civil3d_querycivil3d_skillsBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation.
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/barbosaihan/civil3d-mcp
cd civil3d-mcp
npm install && npm run buildCopy the Civil 3D DLLs listed in C_References/README.md (accoremgd.dll, AcDbMgd.dll, acmgd.dll, AecBaseMgd.dll, AeccDbMgd.dll) from your Civil 3D installation into C_References/
cd plugin/Civil3dMcpPlugin
dotnet buildIn Civil 3D, run NETLOAD and select the built Civil3dMcpPlugin.dll, then run C3DMCPSTATUS to check the plugin is running
MCP Clients
Claude Desktop, Cline
{
"mcpServers": {
"civil3d": {
"command": "node",
"args": [
"<YOUR_PATH_TO_CIVIL3D_MCP>/build/index.js"
]
}
}
}