Skip to main content
Glama

nrf-mcp

MCP server for Nordic nRF Connect SDK development. Provides Claude with tools to browse documentation and sample code from the nrfconnect/sdk-nrf repository.

Tools

Tool

Description

nrf_list

List files and directories at a given path in the SDK repo

nrf_read

Read a file's contents (.rst docs, .c/.h source, CMakeLists.txt, prj.conf, etc.)

nrf_search

Search across the repo using GitHub code search with qualifier support

Search examples

# Find all uses of a symbol
DFU_TARGET_IMAGE_TYPE_ANY

# Search docs only
FOTA path:doc/nrf

# Search samples only
peripheral_hr path:samples

# Filter by file type
CONFIG_BT_PERIPHERAL extension:conf
bt_le_adv_start extension:c

Setup

Prerequisites

  • Node.js 18+

  • GitHub CLI ( authenticated — used to supply a GitHub token at runtime

Install and build

npm install
npm run build

Register with Claude Code

claude mcp add -s user nrf-mcp -- /path/to/nrf-mcp/run.sh

Register with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "nrf-mcp": {
      "command": "/path/to/nrf-mcp/run.sh",
      "args": []
    }
  }
}

Then restart Claude Desktop.

The run.sh wrapper fetches a fresh token from gh auth token each time the server starts, so no token is ever hardcoded.

Configuration

Variable

Default

Description

NRF_SDK_REF

see nrfSdkRef in package.json

SDK version to target — any git ref (tag, branch, commit SHA)

GITHUB_TOKEN

(from

GitHub API token; set explicitly to bypass the gh CLI

To target a different SDK version, set the env var in the MCP registration:

claude mcp remove nrf-mcp
claude mcp add -s user -e NRF_SDK_REF=v3.2.4 nrf-mcp -- /path/to/nrf-mcp/run.sh

Rebuild after changes

npm run build
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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/pshanesmith/nrf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server