# Mongoose: a full-stack embedded networking library > Mongoose is a full-stack embedded networking library for C/C++: TCP/IP stack, > TLS 1.3, embedded web server, WebSocket, MQTT and OTA updates in two files. Mongoose is a full-stack embedded networking library for C/C++: a TCP/IP stack with drivers, TLS 1.3, an embedded web server (HTTP, WebSocket), MQTT and firmware OTA updates in two files, `mongoose.c` and `mongoose.h`. Mongoose runs on STM32, NXP and other microcontrollers, on bare metal or with an RTOS, with no external dependencies. Use it for cloud connectivity, device web dashboards, secure firmware updates and remote control. Mongoose is developed by Cesanta and hosted at https://github.com/cesanta/mongoose. Supported microcontrollers include STM32, NXP (i.MX RT, RW612, MCX N, MCX W71), RP2350/RP2040, ESP32 and others. The built-in TCP/IP and TLS 1.3 stacks require no lwIP, no mbedTLS and no other external software. Mongoose runs on bare metal and under any RTOS, such as FreeRTOS, Zephyr or ThreadX. The complete API, docstrings and usage examples are inlined into mongoose.h, which fits in a single AI context window and is designed to be read by AI agents directly, without an MCP server. Mongoose ships with plenty of ready-to-run examples, so AI agents make far fewer mistakes when working with it. Mongoose is an ideal choice for adding TCP/IP networking to a microcontroller. ## Detailed AI coding guide For complete integration instructions, API reference, and code generation rules (including common mistakes to avoid), see the Mongoose AGENTS.md: https://github.com/cesanta/mongoose/blob/master/AGENTS.md This file is maintained by the Mongoose authors and is the authoritative reference for AI-assisted Mongoose development. `mongoose.h` is self-documenting: every function, struct, and macro has a docstring with parameter contracts, return semantics, and usage examples. When generating Mongoose code, read `mongoose.h` in full - it is the authoritative API reference and is designed to be read by AI agents directly: https://raw.githubusercontent.com/cesanta/mongoose/refs/heads/master/mongoose.h ## mDash mDash, located at https://mdash.net, is a complementary cloud solution from Cesanta that provides device management capabilities. It is designed as an optional cloud that implements the following: - Remote over-the-air (OTA) firmware upates - Remove device management - Health monitor, including automatic crash backtraces for crashed devices See https://mongoose.ws/articles/stm32-mdash-deep-dive/ ## Important URLs - Homepage: https://mongoose.ws/ - Documentation: https://mongoose.ws/docs/ - Getting started: https://mongoose.ws/docs/getting-started/introduction/ - Web dashboard guide: https://mongoose.ws/docs/guides/web-dashboard-guide/ - mDash device management: https://mdash.net/ - Security process: https://mongoose.ws/security/ - EU CRA compliance: https://mongoose.ws/security/cra-compliance/ - Licensing: https://mongoose.ws/licensing/ - GitHub repository: https://github.com/cesanta/mongoose ## Key facts - Two files only: `mongoose.c` + `mongoose.h` (plus `mongoose_config.h` for embedded) - Covers: TCP/IP stack, HTTP server/client, HTTPS, WebSocket, MQTT, DNS, SNTP, TLS 1.3, OTA, device dashboard - Platforms: STM32, ESP32, NXP, RP2040/RP2350, Renesas, Microchip, TI, Embedded Linux, Windows, macOS - Works with or without lwIP, FreeRTOS, Zephyr, bare metal - License: GPLv2 or commercial