Back to Home
emqx icon

mcp-typescript-sdk

Verified Safe

by emqx

Overview

The TypeScript SDK facilitates the implementation of Model Context Protocol (MCP) over MQTT for creating AI-integrable servers and clients, enabling LLMs to discover and interact with external services and tools.

Installation

Run Command
npm run start:server

Security Notes

The source code appears to follow good security practices. It extensively uses Zod schemas for input validation, which helps prevent malformed requests and potential injection vulnerabilities. Message parsing uses `JSON.parse`, which is safe for valid JSON. There are no explicit uses of `eval`, `child_process.exec`, or other dynamic code execution mechanisms. Sensitive information like MQTT credentials (username, password) are expected to be provided by the user during configuration and are not hardcoded. The SDK uses `nanoid` for generating unique IDs, which is cryptographically strong. MQTT 5.0 features are leveraged to enhance connection robustness. The error handling mechanism also appears to prevent excessive internal detail leakage. The `RELEASING.md` indicates secure npm publishing via OIDC, reflecting a general security awareness.

Similar Servers

Stats

Interest Score61
Security Score9
Cost ClassLow
Stars97
Forks4
Last Update2026-01-19

Tags

mcpmqtttypescriptsdkai-integration