e2studio RA MCP Server
by KaleoLiu
README.md
# e2studio RA MCP Server
An [MCP](https://modelcontextprotocol.io) server that lets Claude (Claude Code / Claude Desktop) drive the
Renesas **e2studio** IDE for **RA MCU** development: create projects, configure FSP modules, pins and clocks,
generate code, build, flash and debug, all from a conversation.
- **122 tools** covering the full workflow, from project setup to on-chip debugging
- **All 39 RA series** (RA0 / RA2 / RA4 / RA6 / RA8), built end-to-end through real e2studio
- **Per-MCU driver routing**: `add_module("uart")` picks `r_sci_uart`, `r_sci_b_uart` or `r_sau_uart` for your chip
- **Schema-validated configuration** from the FSP 6.3.0 packs: module properties, 520 clock constraints, pin/package conflicts
- **Built-in task guides** (`e2studio_get_usage_guide`) that walk an agent through each workflow
## Workflow
```
Project setup → FSP config → Code gen → Compiler config → Build → Build analysis → Debug / Flash
```
| Area | Examples |
|---|---|
| Project | `create_project`, `import_project`, `clone_project`, `create_tz_pair` (TrustZone) |
| FSP configuration | `describe_module`, `add_module`, `configure_pins`, `configure_clocks`, `configure_interrupts`, `modify_config` |
| RTOS | `enable_freertos`, `add_freertos_thread`, `enable_threadx`, `add_threadx_thread` |
| Code generation | `generate_code`, `validate_generated`, `lint_config` |
| Build & analysis | `build`, `parse_build_output`, `memory_report`, `analyze_map_file`, `security_scan`, `misra_check` |
| Flash & debug | `flash_program`, `connect_debugger`, breakpoints, stepping, memory/registers, `analyze_hardfault` |
| Runtime | SEGGER RTT logging, RTOS diagnostics, NVIC/clock checks, profiling |
The full tool contract (every tool and parameter) is in [`CLAUDE.md`](CLAUDE.md).
## Requirements
| Item | Version |
|---|---|
| OS | Windows 10 / 11 |
| Node.js | ≥ 20 |
| e2studio + FSP | e2studio 2025-12 + FSP 6.3.0 (recommended) |
| Debug probe | SEGGER J-Link (recommended), Renesas E2 / E2 Lite |
| Client | Claude Code or Claude Desktop |
## Quick start
```powershell
git clone https://github.com/KaleoLiu/e2studio-ra-mcp-server.git
cd e2studio-ra-mcp-server
npm install
setx E2STUDIO_PATH "C:\Renesas\RA\e2studio_v2025-12_fsp_v6.3.0"
```
Then open the repository root in Claude Code. The bundled `.mcp.json` compiles and starts the server
automatically. To use it from another folder or from Claude Desktop, see [`INSTALL.md`](INSTALL.md).
Ask Claude something like:
> Create an RA6M5 project on EK-RA6M5, add a UART on SCI7 at 115200 baud, build it and flash it.
## Documentation
- [`INSTALL.md`](INSTALL.md): installation, configuration and client registration
- [`CLAUDE.md`](CLAUDE.md): complete tool reference and rules
- [`RELEASE_NOTES.md`](RELEASE_NOTES.md): capabilities and known limitations
- [`skills/`](skills): task walkthroughs served by `e2studio_get_usage_guide`
## Disclaimer
This is an independent project and is not affiliated with or endorsed by Renesas Electronics.
e2studio, FSP and RA are products of Renesas Electronics Corporation. Hardware operations such as
flash erase and programming act on real devices; review what the agent is about to do.
## License
[MIT](LICENSE)