Hardware for MCP
This repository shows examples of how you can use a language model to perform tool calls for:
- building a CAD part
- running heat transfer simulations
This repository uses the Model Context Protocol (MCP)
Install Dependencies
First, clone the current GitHub repository with the following command.
Now, install all the Python dependencies using the uv
package manager:
Install ngrok or any similar tunelling services. ngrok can be installed from https://ngrok.com/downloads
Next, if you use ngrok, run:
This will expose port 8000 (which we will be using soon for the MCP server) to a specific URL.
You should see a publicly visible URL after running the ngrok
command. Keep note of this, you will need to add this in the .env
file's environment variables.
Configure Environment Variables
Create a .env
file and add the following environment variables
Quickstart
In one terminal, run the MCP server with the following:
In a second terminal, run the client with the following:
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables language models to perform hardware engineering tasks including CAD part design and heat transfer simulations. Provides tool calls for building mechanical components and running thermal analysis through natural language interactions.