GC

greatapo/concrete-properties-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 3 forks 质量 65 趋势 14MIT

Concrete Section Properties AI MCP Server

概览

A Model Context Protocol Server for Reinforced Concrete Section Analysis The Concrete-Properties-MCP Server provides a unified API interface for interacting with the Python library. It enables AI-driven calculation of section properties and capacities of reinforced concrete sections through a consistent interface. - : - Calculate geometric properties (area, centroid, moment of inertia, etc.) - Compute transformed section properties - : - Calculate axial, bending, and combined capacities - Determine interaction diagrams - : - Define concrete and reinforcement material properties - Support for multiple concrete grades and steel types The server provides the following main API functions: - rectangular_concrete_area_properties: Compute the rectangular concrete section geometric properties. - arbitrary_concrete_area_properties: Compute arbitrary concrete section geometric properties.

README

以下为原文 README 节选,完整内容请查看原文。

Concrete-Properties-MCP Server

A Model Context Protocol Server for Reinforced Concrete Section Analysis

🚀 Overview

The Concrete-Properties-MCP Server provides a unified API interface for interacting with the Concrete Properties Python library. It enables AI-driven calculation of section properties and capacities of reinforced concrete sections through a consistent interface.

✨ Supported Features

  • Section Properties:
    • Calculate geometric properties (area, centroid, moment of inertia, etc.)
    • Compute transformed section properties
  • Reinforced Concrete Analysis:
    • Calculate axial, bending, and combined capacities
    • Determine interaction diagrams
  • Material Properties:
    • Define concrete and reinforcement material properties
    • Support for multiple concrete grades and steel types

🖥️ MCP Tools

The server provides the following main API functions:

  • rectangular_concrete_area_properties: Compute the rectangular concrete section geometric properties.
  • arbitrary_concrete_area_properties: Compute arbitrary concrete section geometric properties.
  • rectangular_concrete_bending_capacity: Compute the rectangular concrete section bending capacities (Mx+, Mx- and My) under the given axial load.
  • rect_concrete_axial_moment_x_points: Compute the rectangular concrete section axial - moment/bending (around X) interaction diagram points.
  • rect_concrete_axial_moment_y_points: Compute the rectangular concrete section axial - moment/bending (around Y) interaction diagram points.
  • rect_concrete_axial_moment_x_image: Plots the rectangular concrete section axial - moment/bending (around X) interaction diagram points.
  • rect_concrete_axial_moment_y_image: Plots the rectangular concrete section axial - moment/bending (around Y) interaction diagram points.

⚙️ Installation

Requirements

Required Python libraries:

mcp>=0.1.0                 # Model Control Protocol library
matplotlib>=3.10.1         # Library for plots
concreteproperties>=0.6.4  # Concrete Properties library

Guide

  1. Install the required Python libraries from the command line:

    pip install mcp concreteproperties matplotlib
    //or
    pip install -r requirements. txt
    
  2. Download this repository and save the extracted files locally (e.g., at C:\your_path_to_the_extracted_server\concrete-properties-mcp\).

  3. (Optional) Edit the MCP server configuration file, located at src/config.json (see configuration section).

  4. Install Claude Desktop (or another AI client with MCP support).

  5. Configure Claude Desktop to launch the MCP Server automatically (see Claude Desktop section).

  6. You are good to go!

Configuration

The configuration file is located at src/config.json and contains the following main settings:

{
    "server": {
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector mcp run src\server.py
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "concrete": { "command": "python", "args": [ "C:\\your_path_to_the_extracted_server\\concrete-properties-mcp\\src\\server.py" ] } } }