MCP ExplorerExplorer

Pyvista Mcp Server

@pyvistaon 10 months ago
3 MIT
FreeCommunity
AI Systems

Overview

What is Pyvista Mcp Server

The PyVista MCP Server is a server implementation that utilizes the PyVista library for 3D visualization within the Model Context Protocol (MCP) framework. It enables the rendering of interactive 3D graphics in conjunction with MCP tools, facilitating advanced visualizations for data management and interaction.

Use cases

The MCP server is particularly useful for applications that require real-time visualization of 3D shapes and environments, such as scientific simulations, educational tools, and data analysis dashboards. It allows users to manipulate and interact with complex models easily, making it suitable for fields like engineering, architecture, and virtual reality.

How to use

To use the MCP server, configure the provided JSON settings for the server in your project, specifying the command to execute the server script along with its arguments. Once set up, you can run the ‘hello_world’ tool to generate a grid of 3D shapes and export the resultant visualization as an interactive HTML file for easy viewing in a web browser.

Key features

Key features include the ‘hello_world’ tool that creates a 3x3 grid of various 3D shapes such as cylinders, arrows, and spheres. The tool allows for exporting these shapes into an interactive HTML format, which supports real-time rendering and user interaction, enhancing the overall visualization experience.

Where to use

The server can be used in environments that require web-based 3D visualizations, making it applicable in areas like web development for scientific visualizations, educational platforms demonstrating complex concepts, or applications in virtual simulations where spatial understanding is crucial.

Content

PyVista MCP Server

This repository contains a PyVista-based MCP (Model Context Protocol) server. It demonstrates the integration of PyVista for 3D visualization with MCP tools.

Features

  • hello_world Tool: A tool that generates and exports a 3x3 grid of 3D shapes (Cylinder, Arrow, Sphere, etc.) as an interactive HTML file.

Output

The hello_world tool exports an HTML file named a_basic.html in the current working directory. Open this file in a web browser to view the interactive 3D visualization.

Configuration

To configure the MCP server, use the following JSON structure in your settings:

{
  "mcpServers": {
    "mcp-demo-server": {
      "disabled": false,
      "timeout": 600,
      "command": "<path-to-python-executable>",
      "args": [
        "<path-to-server-script>"
      ],
      "transportType": "stdio"
    }
  }
}

This configuration specifies the command and arguments to run the MCP server, along with other settings like timeout and transport type.

Example Usage

https://github.com/user-attachments/assets/244d7f7d-1432-4d11-8b12-b0138e97746a

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers