PyVista MCP Server

$python <path-to-server-script>
README.md

Enables 3D visualization capabilities through PyVista integration

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": "",
      "args": [""],
      "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 (1)

hello_worldGenerates and exports a 3x3 grid of 3D shapes (Cylinder, Arrow, Sphere, etc.) as an interactive HTML file.

Configuration

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

Try it

Generate a 3D visualization of geometric shapes using PyVista.
Create an interactive HTML file showing a grid of 3D objects like spheres and cylinders.
Use the hello_world tool to export a 3D shape grid to a_basic.html.

Frequently Asked Questions

What are the key features of PyVista MCP Server?

Integration of PyVista for 3D visualization with MCP tools.. Generation of interactive 3D shape grids including Cylinders, Arrows, and Spheres.. Exporting visualizations as standalone interactive HTML files.. Support for standard input/output (stdio) transport type..

What can I use PyVista MCP Server for?

Visualizing geometric objects and 3D shapes directly from a model context.. Generating interactive 3D reports that can be viewed in a web browser.. Demonstrating PyVista capabilities within an MCP-compliant environment.. Prototyping 3D layouts and shape arrangements using Python-based tools..

How do I install PyVista MCP Server?

Install PyVista MCP Server by running: python <path-to-server-script>

What MCP clients work with PyVista MCP Server?

PyVista MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use PyVista MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free