C++ Builder MCP Server
About
MCP server providing C++ DLL compilation and analysis capabilities
Details
- Author
- peterparker57
- Downloads
- 397
- Categories
- Other
Jump to
- C++ DLL compilation with MSBuild
- Custom export settings via .def files
- DLL export analysis using dumpbin
- Configurable build settings (Debug/Release, x86/x64)
- Full build output with warnings and errors
- Detailed export table analysis
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
C++ Builder MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via npm install and build with npm run build. Add the server to your MCP settings file pointing to the compiled index.js. Invoke tools such as compile_dll (with path to .vcxproj and optional configuration, platform, .def file) and analyze_exports (with path to DLL).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"c++ builder mcp server": {
"cpp-builder": {
"command": "node",
"args": [
"path/to/cpp-builder-mcp-server/dist/index.js"
]
}
}
}
}
McpServers
{
"cpp-builder": {
"command": "node",
"args": [
"path/to/cpp-builder-mcp-server/dist/index.js"
]
}
}
C++ Builder MCP Server
An MCP server providing C++ DLL compilation and analysis capabilities. This server enables building C++ DLLs with specific export settings and analyzing DLL exports using Visual Studio build tools.Features
- C++ DLL compilation with MSBuild - Custom export settings via .def files - DLL export analysis using dumpbin - Configurable build settings - Platform and configuration targeting - Detailed build outputTools
DLL Compilation
compile_dll
Compile a C++ DLL with specific export settings using MSBuild. - projectPath: Path to the .vcxproj file (required) - configuration: Build configuration (optional) - Values: 'Debug' or 'Release' - Default: 'Release' - platform: Target platform (optional) - Values: 'x86' or 'x64' - Default: 'x86' - defFile: Path to .def file for exports (optional) - Specifies exported functions and their attributes - Used to control which functions are exposed by the DLL The tool uses Visual Studio's MSBuild to compile the DLL, providing: - Full build output with warnings and errors - Support for different configurations and platforms - Module definition file integration - Detailed build logsExport Analysis
analyze_exports
Analyze exports from a compiled DLL using dumpbin. - dllPath: Path to the DLL file (required) The analysis provides: - List of all exported functions - Export ordinals - Function names and addresses - Export forwarding information - Detailed export table analysisRequirements
- Visual Studio 2022 Community Edition or higher - Visual C++ build tools - Windows SDKInstallation
1. Clone the repository: ``bash
git clone https://github.com/yourusername/cpp-builder-mcp-server.git
cd cpp-builder-mcp-server
`
2. Install dependencies:
`bash
npm install
`
3. Build the project:
`bash
npm run build
`
Configuration
Add the server to your MCP settings file:
`json
{
"mcpServers": {
"cpp-builder": {
"command": "node",
"args": ["path/to/cpp-builder-mcp-server/dist/index.js"],
"env": {}
}
}
}
`
Usage Examples
Compile DLL
`typescript
// Basic compilation
await mcp.use("cpp-builder", "compile_dll", {
projectPath: "./src/MyLibrary.vcxproj"
});
// Compilation with specific settings
await mcp.use("cpp-builder", "compile_dll", {
projectPath: "./src/MyLibrary.vcxproj",
configuration: "Debug",
platform: "x64",
defFile: "./src/exports.def"
});
`
Analyze DLL Exports
`typescript
await mcp.use("cpp-builder", "analyze_exports", {
dllPath: "./bin/Release/MyLibrary.dll"
});
`
Development
1. Make changes to the source code
2. Run tests:
`bash
npm test
`
3. Build the project:
`bash
npm run build
``
Contributing
1. Fork the repository 2. Create your feature branch 3. Commit your changes 4. Push to the branch 5. Create a Pull RequestLicense
MITSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



