arm-code-mcp
Provides tools to analyze performance, suggest NEON SIMD intrinsics, and audit Python dependency manifests for arm64 compatibility, enabling optimization of Linux workloads on Arm64.
Helps optimize Linux workloads on Arm64 by parsing perf report output and identifying hot symbols for performance tuning.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arm-code-mcpcheck arm64 deps in my requirements.txt"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
arm-code-mcp
An MCP server that helps AI assistants optimize Linux workloads on Arm64.
It parses perf report output, recommends NEON SIMD intrinsics for hot loops,
and audits Python dependency manifests for arm64 wheel availability —
all offline, all structured, all callable from Claude Code, GitHub Copilot, and Codex.
What's inside
analyze_perf_output— parseperf report --stdiointo a ranked list of hot symbolssuggest_neon_intrinsic— semantic + keyword search over 110 curated NEON intrinsicscheck_arm64_deps— flag packages inrequirements.txt,pyproject.toml, orDockerfilethat lack arm64 wheels or require special handling
Related MCP server: perf-mcp
Prerequisites
Docker
An MCP-compatible AI assistant (Claude Code, GitHub Copilot, Codex)
Quick start
docker pull jeannjohnson/arm-code-mcp:latestAdd to your MCP client config (e.g. ~/.claude/mcp.json):
{
"mcpServers": {
"arm-code-mcp": {
"command": "docker",
"args": ["run", "--rm", "-i", "jeannjohnson/arm-code-mcp:latest"]
}
}
}Restart your client. All three tools are now available.
Tools
analyze_perf_output
Parse raw perf report --stdio output and return the top hot symbols, ranked by overhead.
analyze_perf_output(
perf_report_text: str, # raw stdout of `perf report --stdio`
top_n: int = 10, # max symbols to return
min_overhead_pct: float = 0.5, # ignore symbols below this %
) -> dictExample response:
{
"summary": {
"total_samples": 5432100,
"total_events": null,
"command": "myapp"
},
"hot_symbols": [
{"overhead_pct": 24.17, "samples": 1245, "command": "myapp",
"module": "myapp", "symbol": "process_buffer"},
{"overhead_pct": 12.34, "samples": 636, "command": "myapp",
"module": "libc-2.31.so", "symbol": "__memcpy_avx_unaligned_erms"}
],
"warnings": []
}suggest_neon_intrinsic
Recommend NEON intrinsics for a hot loop using hybrid semantic + exact-name retrieval over a curated knowledge base of 110 intrinsics.
suggest_neon_intrinsic(
operation_description: str, # e.g. "32-bit float multiply-accumulate"
target_arch: str = "armv8-a", # "armv8-a" | "armv8.2-a" | "armv9-a"
top_k: int = 5,
) -> dictExample response:
{
"matches": [
{
"intrinsic": "vmlaq_f32",
"signature": "float32x4_t vmlaq_f32(float32x4_t a, float32x4_t b, float32x4_t c)",
"header": "<arm_neon.h>",
"min_arch": "armv8-a",
"description": "Multiply-accumulate: a + (b * c), lane-wise, 4x f32.",
"score": 0.9142
}
],
"notes": "Filtered to armv8-a. KB contains 110 entries (103 compatible)."
}check_arm64_deps
Scan a dependency manifest and flag packages with known arm64 compatibility issues. Fully offline — no network calls, fast, deterministic.
check_arm64_deps(
file_content: str, # raw text of the manifest
file_type: str = "requirements.txt", # "requirements.txt" | "pyproject.toml" | "Dockerfile"
) -> dictExample response:
{
"checked": ["numpy", "tensorflow", "cupy-cuda12x", "faiss-cpu", "requests"],
"issues": [
{"package": "cupy-cuda12x", "severity": "error",
"message": "GPU-only package with no arm64 wheel. Use cupy with ROCm or a CPU fallback."},
{"package": "tensorflow", "severity": "warning",
"message": "Official TensorFlow PyPI wheels are x86-only before 2.10; use tensorflow-aarch64 or build from source."},
{"package": "faiss-cpu", "severity": "warning",
"message": "No official arm64 wheel on PyPI; build from source or use the conda-forge package."},
{"package": "numpy", "severity": "info",
"message": "arm64 wheels available from PyPI since 1.21.0. Ensure version >= 1.21.0."}
],
"summary": "Checked 5 package(s): 1 error(s), 2 warning(s), 1 info(s)."
}Severity levels:
Level | Meaning |
| No arm64 wheel exists (e.g. GPU-only packages) |
| Wheel exists but requires a workaround or alternative source |
| Wheel available; version constraint or system-lib note applies |
Configuration
All env vars are optional. The server works with no configuration.
Variable | Default | Description |
|
| Log verbosity: |
| bundled JSONL | Override path to |
|
| Embedding cache directory |
Pass env vars to the container:
docker run --rm -i \
-e ARM_CODE_MCP_LOG_LEVEL=DEBUG \
jeannjohnson/arm-code-mcp:latestEvaluation
suggest_neon_intrinsic is evaluated against 15 hand-curated (query, expected intrinsic) pairs
using the real all-MiniLM-L6-v2 embedding model. Current baseline:
Metric | Score |
hit@1 | 0.667 |
hit@3 | 0.933 |
hit@5 | 1.000 |
MRR | 0.817 |
The regression guard exits non-zero if hit@3 drops below 0.70.
Run the eval harness locally:
uv sync
make evalSee eval/README.md for methodology and known limitations.
Development
git clone https://github.com/jean-johnson-zwix/arm-code-mcp
cd arm-code-mcp
uv sync
make test # 78 tests
make lint # ruff check + format
make eval # real model, 15 gold queriesMakefile targets:
Target | Description |
|
|
| Run the full test suite |
| ruff check + ruff format --check |
| Run the NEON retrieval eval harness |
| Build |
| Run the local dev image over stdio |
Multi-arch images (linux/amd64 + linux/arm64) are built and pushed automatically
by .github/workflows/release.yml on v*.*.* tags.
Knowledge base maintenance
The NEON intrinsics knowledge base lives in src/arm_code_mcp/kb/data/neon_intrinsics.jsonl
(110 entries). To add intrinsics or refresh after a model upgrade, see docs/kb-refresh.md.
Roadmap
Tools
parse_flamegraph— extract hot paths from Linux perf flamegraph SVGsuggest_sve2_intrinsic— extend retrieval to SVE2 intrinsics (Neoverse V2, Cortex-X4)
Eval
Multi-query paraphrase expansion for each gold pair
Reranking pass over semantic candidates
Larger gold set (50+ queries) for lower metric variance
Demo
Coming soon.
Contributing
Stars, forks, and issues are welcome. Open a PR or file an issue on GitHub.
Good first issues:
Add more NEON intrinsic entries to
kb/data/neon_intrinsics.jsonlAdd gold eval queries for SVE2 intrinsics
Add
parse_flamegraphtool for Linux perf flamegraph SVG files
License
Apache 2.0 — same as arm/mcp.
Available Tools
4 toolsanalyze_perf_outputA
Parse the text output of perf report --stdio and return the top hot symbols.
Use this tool when a user pastes `perf report --stdio` output and wants to know
which functions are consuming the most CPU cycles on their Arm64 system.
Args:
perf_report_text: Raw stdout of `perf report --stdio` or similar.
top_n: Maximum number of hot symbols to return (default 10).
min_overhead_pct: Filter out symbols below this overhead percentage (default 0.5).
Returns:
{
"summary": {"total_samples": int, "total_events": int | None, "command": str | None},
"hot_symbols": [
{"overhead_pct": 12.34, "samples": 1234, "command": "...",
"module": "...", "symbol": "..."},
...
],
"warnings": [...]
}
Example: analyze_perf_output(perf_report_text=text, top_n=5, min_overhead_pct=1.0)
returns the 5 hottest symbols above 1% overhead.
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| min_overhead_pct | No | ||
| perf_report_text | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden and goes beyond a one-line summary by specifying filtering semantics, default values, and the full return shape including warnings. It does not detail malformed-input failure modes, but this is a read-only parsing operation and the core behavior is transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose, followed by usage, parameters, return shape, and a practical example. Every section earns its place, especially since there is no output schema and annotations are absent.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parser with no annotated safety profile and no output schema, the description supplies the essential context: when to use it, what each parameter means, what the returned object looks like, and an example combining parameters. No critical information is missing for an agent to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no per-parameter descriptions, so the description fully compensates by defining each argument: raw text input, top_n as the maximum number of symbols, and min_overhead_pct as a filter threshold with defaults. This gives an agent everything needed to set the parameters correctly.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: parse perf report --stdio text and return top hot symbols. This clearly conveys what the tool does and is distinguishable from sibling tools like ping, suggest_neon_intrinsic, and check_arm64_deps, which address unrelated tasks.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly says to use the tool when a user pastes perf report --stdio output and wants CPU-consuming functions. It does not mention when not to use it, but the sibling tools are in different domains, so no exclusions or alternatives are necessary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
check_arm64_depsA
Scan a dependency manifest for known arm64 compatibility issues.
Use this tool when a user wants to know whether their Python dependencies
will install on an Arm64 server (AWS Graviton, Google Axion, Ampere Altra,
Raspberry Pi 5), or when they ask why a package fails on arm64.
Args:
file_content: Raw text of the dependency manifest.
file_type: One of "requirements.txt", "pyproject.toml", or "Dockerfile".
Returns:
{
"checked": ["numpy", "tensorflow", ...],
"issues": [
{"package": "tensorflow", "severity": "warning",
"message": "Official TensorFlow PyPI wheels are x86-only..."}
],
"summary": "Checked 5 package(s): 1 warning(s)."
}
Severity levels: "error" = no arm64 wheel at all (e.g. GPU-only packages);
"warning" = arm64 wheel exists but requires workaround;
"info" = wheel available but version constraint or system lib note applies.
Example: check_arm64_deps(content, "requirements.txt") flags cupy (error),
tensorflow (warning), and reports numpy arm64 wheel availability (info).
| Name | Required | Description | Default |
|---|---|---|---|
| file_type | No | requirements.txt | |
| file_content | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explains return structure, defines severity levels (error/warning/info) with concrete meanings, and gives a realistic example of outputs for cupy, tensorflow, and numpy. This goes well beyond a bare 'scan' statement.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is longer than average but every section earns its place: purpose, use case, arguments, return format, severity semantics, and example. It is well-structured and front-loaded with the core purpose before any detail.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given there is no output schema and no annotations, the description provides a complete picture: what inputs are needed, what the return object looks like, how issues are categorized, and a concrete example. An agent has enough information to invoke the tool correctly and interpret results.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for missing parameter documentation. It fully explains both parameters: file_content as raw manifest text, and file_type with exact allowed values ('requirements.txt', 'pyproject.toml', or 'Dockerfile'). It also demonstrates the call signature with an example.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence names a specific action and resource: scanning a dependency manifest for arm64 compatibility issues. It also clarifies the subject (Python dependencies) and target hardware (Arm64 servers like AWS Graviton), making it easy to distinguish from the unrelated sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use the tool: when a user wants to know whether Python dependencies install on Arm64 or why a package fails on arm64. It provides clear context, but it does not mention exclusions or alternative tools, so it stops short of a full when-not/alternative guide.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
pingA
Health-check — returns "pong: ". Example: ping(message="hello") → "pong: hello".
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations available, the description carries the behavioral disclosure burden. It clearly states the exact return format and gives a concrete example, which is strong for a simple ping tool. It does not mention failure modes or side effects, but 'Health-check' implies a non-mutating liveness probe.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence plus one illustrative example, with no filler. It packs the core behavior, the return format, and parameter usage into a minimal, front-loaded structure.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple health-check tool with one required string parameter and an output schema, the description fully covers what an agent needs: what the tool does, what input it expects, and what output to expect. Nothing essential is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no property descriptions, so the tool description must compensate. The example 'ping(message="hello") → "pong: hello"' demonstrates that the message parameter is echoed back inside the pong string, effectively conveying its semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description identifies a specific verb ('Health-check') and explicitly defines the tool's behavior: it returns 'pong: <message>'. This clearly distinguishes it from the analysis-oriented sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The 'Health-check' label and echo-like example make the intended use obvious, but the description does not explicitly state when to use it versus alternatives. Given that the sibling tools are clearly unrelated, the implied usage is sufficient.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
suggest_neon_intrinsicA
Suggest NEON SIMD intrinsics for an operation description, ranked by semantic similarity.
Use this tool when a user asks which NEON intrinsic to use for a hot loop, wants to
vectorize an operation on Arm64, or mentions intrinsic names like vmlaq_f32.
Args:
operation_description: Natural-language description of the operation
(e.g., "vectorized 32-bit float multiply-accumulate" or "vmlaq_f32").
target_arch: Target Arm architecture — "armv8-a" (default), "armv8.2-a", or "armv9-a".
top_k: Number of suggestions to return (default 5).
Returns:
{
"matches": [
{"intrinsic": "vmlaq_f32", "signature": "...", "header": "<arm_neon.h>",
"min_arch": "armv8-a", "description": "...", "score": 0.83},
...
],
"notes": "Filtered to armv8-a. KB contains N entries (M compatible)."
}
Example: suggest_neon_intrinsic("32-bit float fused multiply-add") returns vfmaq_f32 at rank 1.
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| target_arch | No | armv8-a | |
| operation_description | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
There are no annotations, so the description carries the behavioral burden. It discloses the similarity-based ranking, architecture filtering ('Filtered to armv8-a'), and the exact return shape including notes about knowledge-base counts. It stops short of describing error/empty-match behavior, but it provides substantial transparency for a read-only suggestion tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well organized into purpose, usage conditions, Args, Returns, and Example. The example return object and worked call are informative rather than redundant. Every section earns its place and supports correct invocation.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description supplies a full return structure, a notes field explanation, and a ranking example. It covers parameters, defaults, and expected results comprehensively for a tool of this complexity. No critical information needed to select or use the tool is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must fully compensate, and it does. It explains operation_description with a concrete example, enumerates valid target_arch values and the default, and states top_k's default and purpose. An agent can call this tool correctly without needing additional parameter documentation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a precise statement: 'Suggest NEON SIMD intrinsics for an operation description, ranked by semantic similarity.' This names the exact verb, resource, and ranking behavior, making the tool's purpose unmistakable. It is also clearly distinct from sibling tools like analyze_perf_output and check_arm64_deps.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly lists when to use the tool: for a hot loop, Arm64 vectorization, or when the user mentions intrinsic names like vmlaq_f32. It does not give explicit when-not or alternative tool guidance, but the sibling tools are topically distant enough that confusion is unlikely.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v0.1.0- First observed
analyze_perf_output - First observed
check_arm64_deps - First observed
ping - First observed
suggest_neon_intrinsic
TDQS
Scored across 4 tools
Each tool has a clearly distinct job: health check, parsing perf output, suggesting NEON intrinsics, and scanning dependency manifests. No two tools overlap or create selection ambiguity.
Three tools follow a clear verb_noun pattern (analyze_perf_output, suggest_neon_intrinsic, check_arm64_deps). The ping health-check tool is a minor deviation, but it's a conventional exception.
Four tools is a well-scoped size for a specialized Arm64 code assistant. Each tool provides standalone value without redundancy.
The tool set covers profiling output analysis, NEON intrinsic lookup, and Arm64 dependency compatibility with no obvious dead ends. Minor gaps exist (e.g., no disassembly or compile-flag assistance), but the core purpose is reasonably served.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Evidence-backed architecture-quality analysis for Python agent applications.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to record, analyze, and compare Xcode Instruments traces, detect performance bottlenecks and regressions, and provide optimization recommendations.44MIT
- FlicenseAqualityCmaintenanceEnables LLMs to analyze Linux perf data files using 26 perf analysis commands, including report, script, annotate, and more, through typed tool parameters.26-

Arm MCP Serverofficial
AlicenseNot gradedqualityAmaintenanceProvides AI assistants with tools for Arm architecture development, migration, and optimization, including knowledge base search, code migration analysis, container inspection, assembly performance analysis, and workload performance testing.91Apache 2.0- AlicenseNot gradedqualityBmaintenanceEnables benchmarking and inference of LLMs on Arm64 cloud instances with KleidiAI optimizations, providing an MCP-compatible API for serving results.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jean-johnson-zwix/arm-code-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server