sergiomauz/mcp-server-dotnet-bimengine
If you are the rightful owner of mcp-server-dotnet-bimengine and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project implements a simple application to test SDK for .Net to create a MCP Server, to be used by Claude, Copilot or another LLM.
A MCP server project - To be shown to Aurora (BIM Engine)
This project implements a simple application to test SDK for .Net to create a MCP Server, to be used by Claude, Copilot or another LLM. The idea of this test is to have a screenshot of a running program (in this case Firefox browser) using Windows API, then apply an OCR to recognize a text (in this case, the domain in the address bar).
Screenshot
Features
- Console application.
- 1 MCP Server with 2 tools.
- 1 JSON file with configurations to add to Claude Desktop (claude_desktop_config.json).
Built With
- Visual Studio 2022 - Community Edition
- C# / .Net 8
- ModelContextProtocol - Repository here
- Tesseract and Tessdata - Repository here
Used Techniques
- Clean architecture
- Clean code
- Static and instanced classes
- Handling exceptions
- Dependencies injection
How to Install
- Install Visual Studio 2022 Community Edition and .Net 8 in your computer.
- Install Claude Desktop.
- Install Firefox Browser.
- Create a new directory in C:\ -> C:\revit-mcp-server. It will be the workspace for this project. Make sure to be there in your terminal.
- Create a new directories inside the workspace, named captures, app and tessdata. Make sure to have permissions to write in all directories that you created.
- In captures directory all screenshots will be saved.
- Clone this repository directly to app:
git clone https://github.com/sergiomauz/mcp-server-dotnet-bimengine.git app
- Clone tessdata repository directly to tessdata:
git clone https://github.com/tesseract-ocr/tessdata.git tessdata
- Finally, click in Build Solution (F6) to make sure that you will have the an .exe file to be used by Claude; if there are no errors, you did it very well.
How to Use
There are 2 ways to use this application: As a console application and as a MCP Server.
To be used as a console application:
-
Open a Firefox window (install it if you don't have it) and navigate to any website. In this case BIM-Engine
-
In VS 2022, open program.cs file, comment region "REVIT-MCP-SERVER" and uncomment region "CONSOLE-APPLICATION".
-
Run application (F5), wait until application is ready:
-
Put the Firefox window and the website in the foreground to continue, wait 2 seconds and application will show a message with the domain that it detected:
-
In the directory
C:\revit-mcp-server\captures
you can see 2 new files: A screenshot of Firefox and a cropped image focused in the address bar: -
If you don't put any Firefox window in foreground after 10 seconds, the application will send a message and terminate.
To be used as a MCP server:
-
Open a Firefox window (install it if you don't have it) and navigate to any website. In this case BIM-Engine
-
In VS 2022, open program.cs file, uncomment region "REVIT-MCP-SERVER" and comment region "CONSOLE-APPLICATION".
-
Run application (F5) and wait until application is ready, if all is ok without errors and exceptions, you can stop it:
-
In your file explorer, go to
%APPDATA%\Claude
, find the file claude_desktop_config.json to edit. Add the configuration to run a new MCP Server using the content of claude_desktop_config.json (the other one in C:\revit-mcp-server\app directory). -
Finally, open Claude Desktop, if there are no problems, you can see a new tool in your toolbox.
-
Now you can ask for a task to your Claude. Send a message asking for the domain that is opened in your Firefox (it could take some seconds to detect and run, and remember to put the Firefox window and the website in the foreground). You can see the results in the chat and captures directory:
Author
👤 Sergio Zambrano
- Github: @sergiomauz
- Twitter: @sergiomauz
- Linkedin: Sergio Zambrano
🤝 Contributing
Contributions, issues and feature requests are welcome!. Feel free to check the .
Show your support
Give a ⭐️ if you like this project!
📝 License
This project is licensed.