DIY Helper MCP Servers
Model Context Protocol (MCP) servers for the DIY Helper platform. Provides building code lookups, material specifications, and manufacturer guide access for real-time consultation support.
Servers
Building Codes Server
Provides access to residential building codes including:
NEC (National Electrical Code)
IRC (International Residential Code)
IPC (International Plumbing Code)
Tools:
search_building_codes- Natural language code searchget_code_section- Retrieve specific code sectionscheck_code_compliance- Verify scenario compliancelist_code_categories- Browse available codes
Material Specs Server
Provides real-time material search, pricing, and quantity calculations.
Tools:
search_materials- Search for products across suppliersget_product_details- Get detailed product specificationsfind_alternatives- Find similar products at different price pointscheck_compatibility- Verify product compatibilitycalculate_wire_needed- Calculate electrical wire quantitiescalculate_outlets_needed- Calculate outlet requirements per NECcalculate_tile_needed- Calculate tile quantitiescalculate_paint_needed- Calculate paint requirementscalculate_deck_lumber- Calculate deck framing materialscalculate_pex_pipe- Calculate plumbing pipe needscreate_shopping_list- Generate complete shopping lists
Running:
Installation
Prerequisites
Python 3.8+
pip
Setup
Clone the repository:
Create virtual environment:
Install dependencies:
Configure environment:
Usage
Running the Building Codes Server
Using with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
Using Programmatically
Development
Adding New Codes
Edit src/building_codes_server/codes.json:
Running Tests
Testing
Run All Tests
Test Coverage
Building Codes Server:
✓ Code search functionality
✓ Specific section retrieval
✓ Category listing
✓ Common DIY questions
✓ Jurisdiction filtering
✓ Edge case handling
Material Specs Server:
✓ Product search
✓ Product details
✓ Material calculators (7 types)
✓ Alternative products
✓ Compatibility checks
✓ Shopping list generation
Quick Tests
Web Testing Interface
For testing on Linux or without Claude Desktop, use the web interface:
Prerequisites
Run the Web Interface
Then open your browser to: http://localhost:5000
Features
Interactive chat with Claude + MCP tools
Real-time building code lookups
Material search and pricing
Project calculators
Complete conversation history
Example queries to get started
Example Queries
Try these in the web interface:
"What are the outlet spacing requirements for a kitchen?"
"Search for 12 gauge wire and show me prices"
"Calculate how much wire I need for a 40-foot circuit"
"I'm installing a dishwasher 30 feet from the panel. What do I need?"
Roadmap
Vector search integration (Pinecone/pgvector)
Material specs server
Manufacturer guides server
Jurisdictional code amendments
Image analysis for code compliance
Cost estimation tools
Contributing
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
License
MIT License - See LICENSE file for details
Support
Documentation: docs/setup.md
Issues: https://github.com/yourusername/diy-helper-mcp-servers/issues
Email: support@yourplatform.com