Arm MCP Server

平台与服务

by arm

Arm官方MCP服务器,提供代码迁移、性能优化以及Arm architecture指导。

什么是 Arm MCP Server

Arm官方MCP服务器,提供代码迁移、性能优化以及Arm architecture指导。

README

Arm MCP Server

An MCP server providing AI assistants with tools and knowledge for Arm architecture development, migration, and optimization.

Using the Arm MCP Server

If your goal is to migrate an application from x86 to Arm as quickly as possible, start here:

Automate x86-to-Arm application migration using Arm MCP Server

Features

This MCP server equips AI assistants with specialized tools for Arm development:

  • Knowledge Base Search: Semantic search across Arm documentation, learning resources, intrinsics, and software compatibility information
  • Code Migration Analysis: Scan codebases for Arm compatibility using migrate-ease (supports C++, Python, Go, JavaScript, Java)
  • Container Architecture Inspection: Check Docker image architecture support using integrated Skopeo and check-image tools.
  • Assembly Performance Analysis: Analyze assembly code performance using LLVM-MCA
  • Arm Performix: Run APX recipe workflows against a target device over SSH to capture and analyze workload performance data
  • System Information: Instructions for gathering detailed system architecture information via sysreport

Pre-Built Image

If you would prefer to use a pre-built, multi-arch image, the official image can be found in Docker Hub here: armlimited/arm-mcp:latest

Prerequisites

  • Docker (with buildx support for multi-arch builds)
  • An MCP-compatible AI assistant client (e.g. GitHub Copilot, Kiro CLI, Codex CLI, Claude Code, etc)

Quick Start

1. Build the Docker Image

From the root of this repository:

bash
docker buildx build --platform linux/arm64,linux/amd64 -f mcp-local/Dockerfile -t armlimited/arm-mcp .

For a single-platform build (faster):

bash
docker buildx build -f mcp-local/Dockerfile -t armlimited/arm-mcp . --load

2. Configure Your MCP Client

Choose the configuration that matches your MCP client:

The examples below include the optional Docker arguments required for Arm Performix. These SSH-related settings are only needed when you want the MCP server to run remote commands on a target device through Arm Performix. If you are not using Arm Performix, you can omit the -e and SSH -v lines.

Claude Code

Add to .mcp.json in your project:

json
{
  "mcpServers": {
    "arm-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v", "/path/to/your/workspace:/workspace",
        "-e", "SSH_KEY_PATH=/run/keys/ssh-key.pem",
        "-e", "KNOWN_HOSTS_PATH=/run/keys/known_hosts",
        "-v", "/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
        "-v", "/path/to/your/ssh/known_hosts:/run/keys/known_hosts:ro",
        "armlimited/arm-mcp"
      ]
    }
  }
}

GitHub Copilot (VS Code)

Add to .vscode/mcp.json in your project, or globally at ~/Library/Application Support/Code/User/mcp.json (macOS):

json
{
  "servers": {
    "arm-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v", "/path/to/your/workspace:/workspace",
        "-e", "SSH_KEY_PATH=/run/keys/ssh-key.pem",
        "-e", "KNOWN_HOSTS_PATH=/run/keys/known_hosts",
        "-v", "/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
        "-v", "/path/to/your/ssh/known_hosts:/run/keys/known_hosts:ro",
        "armlimited/arm-mcp"
      ]
    }
  }
}

The easiest way to open this file in VS Code for editing is command+shift+p and search for

MCP: Open User Configuration

AWS Kiro CLI

Add to ~/.kiro/settings/mcp.json:

json
{
  "mcpServers": {
    "arm-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v", "/path/to/your/workspace:/workspace",
        "-e", "SSH_KEY_PATH=/run/keys/ssh-key.pem",
        "-e", "KNOWN_HOSTS_PATH=/run/keys/known_hosts",
        "-v", "/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
        "-v", "/path/to/your/ssh/known_hosts:/run/keys/known_hosts:ro",
        "--name", "arm-mcp",
        "armlimited/arm-mcp"
      ],
      "timeout": 60000
    }
  }
}

Gemini CLI

It is recommended to use a project-local configuration file to ensure the relevant workspace is mounted.

Add to .gemini/settings.json in your project root:

json
{
  "mcpServers": {
    "arm-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v", "/path/to/your/workspace:/workspace",
        "-e", "SSH_KEY_PATH=/run/keys/ssh-key.pem",
        "-e", "KNOWN_HOSTS_PATH=/run/keys/known_hosts",
        "-v", "/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
        "-v", "/path/to/your/ssh/known_hosts:/run/keys/known_hosts:ro",
        "armlimited/arm-mcp"
      ]
    }
  }
}

MCP Clients using TOML format (e.g. Codex CLI)

toml
[mcp_servers.arm-mcp]
command = "docker"
args = [
  "run",
  "--rm",
  "-i",
  "-v", "/path/to/your/workspace:/workspace",
  "-e", "SSH_KEY_PATH=/run/keys/ssh-key.pem",
  "-e", "KNOWN_HOSTS_PATH=/run/keys/known_hosts",
  "-v", "/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
  "-v", "/path/to/your/ssh/known_hosts:/run/keys/known_hosts:ro",
  "armlimited/arm-mcp"
]

Note: Replace /path/to/your/workspace with the actual path to your project directory that you want the MCP server to access. If you are enabling Arm Performix, also replace the SSH key and known_hosts paths with your local files.

3. Restart Your MCP Client

After updating the configuration, restart your MCP client to load the Arm MCP server.

Repository Structure

  • mcp-local/: The MCP server implementation
    • server.py: Main FastMCP server with tool definitions
    • utils/: Helper modules for each tool
    • data/: Pre-built knowledge base (embeddings and metadata)
    • Dockerfile: Multi-stage Docker build
  • embedding-generation/: Scripts for regenerating the knowledge base from source documents

Integration Testing

Pre-requisites

  • Build the mcp server docker image
  • Install the required test packages using - pip install -r tests/requirements.txt within the mcp_local directory.

Testing Steps

  • Run the test script - python -m pytest -s tests/test_mcp.py
  • Check if following 2 docker containers have started - mcp server & testcontainer
  • All tests should pass without any errors. Warnings can be ignored.

Troubleshooting

Accessing the Container Shell

To debug or explore the container environment:

bash
docker run --rm -it --entrypoint /bin/bash armlimited/arm-mcp

Common Issues

  • Timeout errors during migration scans: Increase the timeout value in your MCP client configuration (e.g., "timeout": 120000 for 2 minutes)
  • Empty workspace: Ensure your volume mount path is correct and the directory exists
  • Architecture mismatches: If you encounter platform-specific issues, rebuild for your specific platform using --platform linux/amd64 or --platform linux/arm64

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

When contributing:

  • Follow PEP 8 style guidelines for Python code
  • Update documentation for any new features or changes
  • Ensure the Docker image builds successfully before submitting

License

Copyright © 2025, Arm Limited and Contributors. All rights reserved.

Licensed under the Apache License, Version 2.0. See LICENSE for details.

常见问题

Arm MCP Server 是什么?

Arm官方MCP服务器,提供代码迁移、性能优化以及Arm architecture指导。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描111.8k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描111.8k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描9.8k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.1k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.9k

评论