wsongyan1-commits

Intel Npu MCP — AI skill for Claude Code

AI community

让你电脑里那块闲置的 NPU,第一次替你的 AI 编程助手干活:按语义找代码、不占 CPU、不出网.

How to install Intel Npu MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wsongyan1-commits/intel-npu-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Intel Npu MCP does

让你电脑里那块闲置的 NPU,第一次替你的 AI 编程助手干活:按语义找代码、不占 CPU、不出网。 | Put your idle Intel NPU to work for AI coding agents - semantic code search, fully offline, zero CPU cost.

Alternatives in AI

  • Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
  • Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
  • Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★

README

intel-npu-mcp

**你电脑里那块 NPU,从买回来那天起,就一直在闲着。**

*Your laptop has a chip you paid for and never used. This puts it to work.*

[![ci](https://github.com/wsongyan1-commits/intel-npu-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/wsongyan1-commits/intel-npu-mcp/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/) [![Platform](https://img.shields.io/badge/platform-Windows%2010%2F11-lightgrey.svg)](#环境要求) [![MCP](https://img.shields.io/badge/MCP-stdio-8A2BE2.svg)](https://modelcontextprotocol.io)


你为它付过钱,却从没用过它

买 Intel Core Ultra 的时候,包装盒上印着「AI PC」。你多花了那笔钱。然后呢——写代码时忙的是 CPU,问 AI 时忙的是云端,那块 NPU 安安静静,一声不吭。

与此同时,你的 AI 编程助手有个说不出口的短板:**它看不懂你的代码。**

你想找「重试是怎么退避的」。你的代码里写的是 `min(2 ** attempt, 60)` —— 没有"重试",也没有"退避"。于是它找不着,只好猜。它打开十几个不相干的文件,烧掉几千个 token,最后给你一个你自己还得再核一遍的答案。

不是它不够聪明。是它手里只有一把锤子,那把锤子叫 `grep`。

现在,给它换一套工具

`intel-npu-mcp` 把你电脑里那块闲置的 NPU,变成 AI 助手的一颗**外挂大脑**。

🔍 它开始真的看懂你的代码

不再是逐字比对。你问"哪儿在处理重试",它能找到那句 `min(2 ** attempt, 60)` —— 因为它是按**意思**找,不是按**字面**找。

🧊 它不跟你抢电脑

索引你的仓库时,CPU 是空的。你该编译编译、该跑测试跑测试,风扇都不带多转一圈。

🔒 你的代码,一步都没离开这台电脑

没有 API key,没有上传,没有"我们可能会用您的数据改进服务"。 公司的代码库,也能放心用。

⚡ 而且它真的快

CPU NPU
索引速度 122 块/秒 240 块/秒
索引消耗的 CPU 时间 11.48 秒 0.05 秒

十万行代码的仓库,全量建索引大约 35 秒。之后每次改动都是增量刷新,几乎瞬间完成。

这些数字不是形容词。全部来自同一台 Core Ultra 9 185H 的实测, 复现脚本就在 `npu_bench` 和仓库的测试里,你可以自己再跑一遍。

60 秒,让它跑起来

git clone https://github.com/wsongyan1-commits/intel-npu-mcp.git
cd intel-npu-mcp
pwsh -File bootstrap.ps1

`bootstrap.ps1` 会自动把运行环境和嵌入模型准备好(约 100 MB,一次性)。然后让你的 AI 助手调一次 `npu_info`,看到 `has_npu: true` 就通了。

**它能接进你已经在用的四个工具** —— DeepSeek Harness、Codex、Claude Code、WorkBuddy:

# 以 DeepSeek Harness 为例,粘贴到 ~/.dsh/profiles//cordis.patch.yml
- insert:
    - id: mcp-npu
      name: '@deepseek-ai/dsh-mcp-client'
      conf