stm32 CLAUDE.md

Project instructions for an MCP server that searches documentation for STM32 microcontrollers, which are small computers built into electronic devices. The server covers more than 80 STM32 documentation files and uses specialized search agents.

In plain words
What is it for?
Installing, understanding, developing, and running the STM32 documentation-search server.
Why use it?
It gives a coding agent the project context and setup steps needed to work on the documentation server. It also explains how to install and run the project.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/creativec09/stm32/claude-md
Clone the repo
git clone --depth 1 https://github.com/creativec09/stm32
Per session 3,246 This file is loaded in full into every session.
When invoked 3,246 The same file — it is already loaded in full.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03246 $0.03246
Opus 5 $0.01623 $0.01623
Sonnet 5 $0.00649 $0.00649
Haiku 4.5 $0.00325 $0.00325

Measured 3d ago against content hash 98bb95b0d937, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

stm32 CLAUDE.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

claude mcp add-json stm32-docs --scope user '{"command":"bash","args":["-c","export PATH=\"$HOME/.local/bin:$PATH\" && (command -v uvx >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q) && uvx -

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

claude mcp add-json stm32-docs --scope user '{"command":"bash","args":["-c","export PATH=\"$HOME/.local/bin:$PATH\" && (command -v uvx >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q) && uvx -
CLAUDE.md · 350 lines

How it starts

The opening of the file, as written. The whole thing — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.

STM32 MCP Documentation Server - Claude Code Project

This file provides instructions for Claude Code when working with this project.

Project Overview

The STM32 MCP Documentation Server is an MCP (Model Context Protocol) server that provides semantic search over 80+ STM32 microcontroller documentation files. It includes 16 specialized agents and auto-installs everything on first run.

Key Features:

  • Hybrid Search - Combines BM25 keyword matching with vector semantic search using Reciprocal Rank Fusion (RRF)
  • Query Expansion - Automatic synonym expansion for STM32-specific terminology (e.g., "UART" expands to include "USART", "serial")
  • Claude Haiku Re-ranking - LLM-based result re-ranking via Claude Code headless mode for improved relevance
  • nomic-embed-text-v1.5 - High-quality 768-dimension embeddings with Matryoshka representation support

Repository: https://github.com/creativec09/stm32 (private)

Installation

One-Command Install (Recommended)

This installation method auto-installs uv if needed, making it work out-of-the-box on Ubuntu 24 WSL and other Linux systems:

# Install MCP server with auto-setup (auto-installs uv if needed, agents + docs auto-install on first run)
claude mcp add-json stm32-docs --scope user '{"command":"bash","args":["-c","export PATH=\"$HOME/.local/bin:$PATH\" && (command -v uvx >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q) && uvx --from git+https://github.com/creativec09/stm32.git stm32-mcp-docs"]}'

Note: For private repository access, include a GitHub Personal Access Token in the URL:

claude mcp add-json stm32-docs --scope user '{"command":"bash","args":["-c","export PATH=\"$HOME/.local/bin:$PATH\" && (command -v uvx >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q) && uvx --from git+https://[email protected]/creativec09/stm32.git stm32-mcp-docs"]}'

If you already have uv installed

claude mcp add stm32-docs --scope user -- uvx --from git+https://github.com/creativec09/stm32.git stm32-mcp-docs

Read the full file on GitHub · 350 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 350 lines · 3,246 tokens per session scan C 98bb95b0d937

Subscribe to this mod's changes

stm32 CLAUDE.md is an instructions file published in the GitHub repository creativec09/stm32 (11 stars, last pushed 5mo ago), licensed MIT. It adds 3,246 tokens to every session, about $0.0162 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

FastLED GEMINI.md

Gemini CLI instructions for FastLED/FastLED, a project described as: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.

FastLED/FastLED · 9 tokens

kicad-happy GEMINI.md

Instructions for aklofas/kicad-happy, covering kicad-happy, agent guidelines, skills, running analysis and schematic analysis.

aklofas/kicad-happy · 1,207 tokens

brilliant_sdk AGENTS.md

Instructions for brilliantlabsAR/brilliant_sdk, covering brilliant sdk — agent guide, how an app works (the pattern behind everything), minimal reading paths, verify without hardware and testing.

brilliantlabsAR/brilliant_sdk · 1,817 tokens

NeoMind CLAUDE.md

Instructions for camthink-ai/NeoMind, covering neomind — edge ai platform for iot, development commands, ecosystem repositories, extension package contract (.nep) and device type template contract (json).

camthink-ai/NeoMind · 4,296 tokens

Nothan-OS CLAUDE.md

Instructions for Vinalinux-Org/Nothan-OS, covering claude.md — nothanos, hard rules, toolchain, driver and design philosophy.

Vinalinux-Org/Nothan-OS · 499 tokens

Meta-Spatial-SDK-Samples meta-quest.instructions.md

Instructions for meta-quest/Meta-Spatial-SDK-Samples: For this repository, prefer Meta Quest Agentic Tools, the Meta Horizon VS Code/Cursor extension, and the hzdb MCP server.

meta-quest/Meta-Spatial-SDK-Samples · 68 tokens