bim-electrical-mcp

bim-electrical-mcp

MCP server for processing electrical BIM data from DXF and JSON files, sanitizing and storing it in Supabase, and enabling AI-powered querying through a conversational assistant.

Category
Visit Server

README

BIM Electrical MCP

BIM Electrical MCP is a Python-based application for processing electrical BIM data from DXF and Revit-style JSON files, sanitizing and storing the extracted information in a Supabase database, and enabling AI-assisted querying through a conversational assistant.

The project is designed to help teams manage and analyze electrical design data more efficiently by combining file processing, structured storage, and intelligent chat-based interaction.

Key Features

  • Upload and process DXF and JSON BIM files
  • Extract electrical components and related metadata
  • Sanitize and redact sensitive or non-essential information before storage
  • Store processed data in Supabase using a structured schema
  • Query data through an AI-powered Electrical Chat Assistant powered by Google Gemini
  • Support a modular architecture for future integrations and extensions

Tech Stack

  • Python
  • Streamlit
  • Supabase
  • Google Gemini API
  • Additional libraries such as ezdxf, pandas, pydantic, python-dotenv, and pytest

Project Structure

.
├── app.py                     # Main Streamlit application entry point
├── requirements.txt          # Python dependencies
├── .env.example              # Example environment configuration template
├── src/
│   ├── agent/                # AI assistant integration logic
│   ├── db/                   # Supabase client and SQL schema
│   ├── extractors/           # DXF and JSON extraction logic
│   ├── mcp_server/           # MCP server-related components
│   ├── sanitizer/            # Data sanitization/redaction utilities
│   └── ui/                   # Pipeline and UI orchestration helpers
├── tests/                    # Unit and integration tests
└── TDD.md                    # Development/testing notes

Getting Started

1. Clone the repository

git clone <your-repository-url>
cd bim-electrical-mcp

2. Create and activate a virtual environment

On Windows:

python -m venv venv
venv\Scripts\activate

On macOS/Linux:

python3 -m venv venv
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Configure environment variables

Create a .env file in the project root by copying the example template:

copy .env.example .env

Or on macOS/Linux:

cp .env.example .env

Then update the values in .env with your own generic configuration. The file should include the required Supabase and Google Gemini settings, for example:

SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_KEY=your-service-key
GOOGLE_API_KEY=your-google-api-key
GOOGLE_PROJECT_ID=your-google-project-id
GOOGLE_LOCATION=global

Keep credentials and sensitive values private and never commit the .env file to a public repository.

Database Setup

This project uses Supabase as its data store. After creating a Supabase project:

  1. Open the SQL Editor in Supabase.
  2. Execute the SQL from src/db/schema.sql.
  3. Ensure the required PostgreSQL extensions are available, including vector and pgcrypto.

The schema creates the core tables used by the application, including components and connections.

Running the Application

Start the Streamlit app with:

streamlit run app.py

Then open the local Streamlit URL in your browser to upload files, process BIM data, and interact with the assistant.

Testing

To run the test suite:

pytest

License

This project is intended for educational, internal, or open-source use. Please review and adjust licensing terms as needed before distribution.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured