MindSpore Tools

v1.0.0Data Science & MLstable

一个基于 MCP 的 MindSpore 开发工具包:既能查询官方模型清单,也提供 PyTorch ↔ MindSpore 互转等跨框架辅助能力。

mindspore-toolsmcpai-integration
Share:
16
Stars
0
Downloads
0
Weekly
0/5

What is MindSpore Tools?

MindSpore Tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 一个基于 mcp 的 mindspore 开发工具包:既能查询官方模型清单,也提供 pytorch ↔ mindspore 互转等跨框架辅助能力。

一个基于 MCP 的 MindSpore 开发工具包:既能查询官方模型清单,也提供 PyTorch ↔ MindSpore 互转等跨框架辅助能力。

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 一个基于 MCP 的 MindSpore 开发工具包:既能查询官方模型清单,也提供 PyTorch ↔ MindSpor

Use Cases

Access MindSpore official model catalog and configurations.
Convert models between PyTorch and MindSpore frameworks.
whitea133

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mindspore-tools

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MindSpore Tools

MindSpore Tools is an MCP server providing a comprehensive development toolkit for the MindSpore deep learning framework, offering 29 tools that cover model discovery, PyTorch-to-MindSpore API mapping, adversarial robustness testing, training configuration generation, code linting, and model deployment utilities. It is designed for machine learning engineers working with Huawei's MindSpore framework who want AI assistance for model selection, framework migration from PyTorch, and generating training scripts for Ascend and GPU hardware.

Prerequisites

  • Python 3.9 or later installed
  • uv package manager installed (pip install uv)
  • Git to clone the repository
  • An MCP-compatible client such as Claude Desktop
  • Optional: MindSpore installed locally for full linting and code analysis features (pip install mindspore)
1

Clone the repository

Clone the mindspore-tools-mcp repository from GitHub.

git clone https://github.com/whitea133/mindspore-tools-mcp.git
cd mindspore-tools-mcp
2

Install dependencies with uv

Run 'uv sync' for the standard set of tools. Add '--extra full' to install all 29 tools including adversarial robustness and advanced model analysis features.

# Standard install (core tools):
uv sync

# Full install (all 29 tools):
uv sync --extra full
3

Test the server locally

Run the server to verify it starts and that tools are registered correctly. It will output the list of available tools on stderr.

uv run python -m mindspore_tools_mcp
4

Add to Claude Desktop config

Add the server to your Claude Desktop configuration file, pointing to the cloned repository directory.

{
  "mcpServers": {
    "mindspore-tools": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/mindspore-tools-mcp",
        "run", "python", "-m", "mindspore_tools_mcp"
      ]
    }
  }
}
5

Restart Claude Desktop and verify

Restart Claude Desktop and ask it to list available MindSpore models to confirm the server is connected.

MindSpore Tools Examples

Client configuration

Claude Desktop config for the MindSpore Tools MCP server using uv to run from the cloned directory.

{
  "mcpServers": {
    "mindspore-tools": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/mindspore-tools-mcp",
        "run", "python", "-m", "mindspore_tools_mcp"
      ]
    }
  }
}

Prompts to try

Example prompts covering model discovery, PyTorch migration, training template generation, and code linting.

- "List available MindSpore models for image classification on Ascend hardware"
- "How do I convert PyTorch's torch.nn.Conv2d to its MindSpore equivalent?"
- "Generate a ResNet50 training script for CIFAR-10 using MindSpore"
- "Lint my MindSpore training script at /path/to/train.py and identify performance issues"
- "Compare MindSpore ResNet50 and MobileNetV2 for mobile deployment"
- "Show me examples for using mindspore.nn.Dense"

Troubleshooting MindSpore Tools

Only some tools are available after installation

Run 'uv sync --extra full' instead of 'uv sync' to install all optional dependencies required for the complete set of 29 tools including adversarial robustness and advanced analysis features.

Code linting tools fail with import errors

The linting tools may require MindSpore to be installed in the same environment. Run 'uv add mindspore' in the project directory to install it, then restart the MCP server.

The server fails to start with 'module not found' errors

Ensure you run the server from the cloned repository directory using the '--directory' flag in the uv args, or 'cd' to the directory first. The module name is 'mindspore_tools_mcp' with underscores, not hyphens.

Frequently Asked Questions about MindSpore Tools

What is MindSpore Tools?

MindSpore Tools is a Model Context Protocol (MCP) server that 一个基于 mcp 的 mindspore 开发工具包:既能查询官方模型清单,也提供 pytorch ↔ mindspore 互转等跨框架辅助能力。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MindSpore Tools?

Follow the installation instructions on the MindSpore Tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MindSpore Tools?

MindSpore Tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MindSpore Tools free to use?

Yes, MindSpore Tools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mindspore-tools": { "command": "npx", "args": ["-y", "mindspore-tools"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MindSpore Tools?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides