home / mcp / diy helper mcp server
MCP servers for DIY consultation platform - building codes, materials, and manufacturer guides
Configuration
View docs{
"mcpServers": {
"jrszilard-diy-helper-mcp-servers": {
"command": "python",
"args": [
"src/building_codes_server/server.py"
],
"env": {
"CODE_DATABASE_PATH": "/path/to/codes.json"
}
}
}
}You deploy MCP servers to provide real-time access to building codes, material specifications, and manufacturer guides through a consistent, programmable interface. This enables you to look up codes, compare materials, and generate shopping lists on demand, all from your preferred MCP client.
You run each MCP server locally or remotely and connect to it using an MCP client. For each server, you can search, query, and compute results like code sections, material details, and calculators. Typical workflows include looking up a code topic, retrieving a specific code section, checking compliance for a scenario, or calculating quantities for a project. When you start a server, you’ll interact with tools from the client’s tool list and call them by name with the required parameters.
Prerequisites: Python 3.8 or newer and pip.
1. Clone the project and enter the directory.
git clone https://github.com/yourusername/diy-helper-mcp-servers.git
cd diy-helper-mcp-servers2. Create and activate a virtual environment.
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate3. Install dependencies.
pip install -r requirements.txt4. Configure environment variables. Create a local environment file and add your API keys or database paths if needed.
cp .env.example .env
# Edit .env and add your API keys or required pathsRun the Building Codes server to enable code lookups and section retrieval.
python src/building_codes_server/server.pyRun the Material Specs server to enable product searches, details, and calculators.
python src/material_specs_server/server.pyConfigure your Claude Desktop to run the Building Codes server via Python with a path to the server file and an environment path for the codes database.
{
"mcpServers": {
"building-codes": {
"command": "python",
"args": ["src/building_codes_server/server.py"],
"env": {
"CODE_DATABASE_PATH": "/path/to/codes.json"
}
}
}
}You can connect to a local stdio MCP server from code by creating a client session and calling the exposed tools by name.
from anthropic import Anthropic
from mcp import ClientSession, StdioServerParameters
server_params = StdioServerParameters(
command="python",
args=["src/building_codes_server/server.py"]
)
async with ClientSession(server_params) as session:
await session.initialize()
tools = await session.list_tools()
result = await session.call_tool(
"search_building_codes",
{"query": "outlet spacing in living room", "jurisdiction": "National"}
)
print(result)The Building Codes server exposes tools for searching codes, retrieving sections, and listing categories. The Material Specs server exposes products, details, alternatives, compatibility checks, and multiple quantity calculators. Both servers can be started locally and connected to from MCP clients using the stdio configuration.
Perform a natural language search across building codes including NEC, IRC, and IPC.
Retrieve a specific code section by code reference or keyword.
Verify whether a given scenario complies with code requirements.
Browse available code categories such as electrical, plumbing, structural, etc.
Search for products across suppliers.
Get detailed product specifications.
Find similar products at different price points.
Verify product compatibility with other components.
Calculate electrical wire quantities for a project.
Calculate outlet requirements per NEC.
Calculate tile quantities for rooms or surfaces.
Calculate paint requirements for surfaces.
Calculate deck framing materials.
Calculate plumbing pipe needs.
Generate a complete shopping list from material specs.