SM

sinadarbouy/mcp-nats

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

53 stars 9 forks 质量 78 趋势 21Apache-2.0

用于NATS消息系统集成的模型上下文协议(MCP)服务器

概览

用于NATS消息系统集成的模型上下文协议(MCP)服务器 该项目为NATS提供了模型上下文协议(MCP)服务器,使AI模型和应用能够通过标准化接口与NATS消息系统交互。它展示了一套全面的NATS服务器交互工具,非常适合需要与消息系统协作的AI驱动应用。 模型上下文协议(MCP)是一种开放协议,标准化应用程序如何向大型语言模型(LLM)提供上下文。

概述(AI 翻译)

用于NATS消息系统集成的模型上下文协议(MCP)服务器

本MCP服务器已通过MCP Review认证。

概述

该项目为NATS提供了模型上下文协议(MCP)服务器,使AI模型和应用能够通过标准化接口与NATS消息系统交互。它展示了一套全面的NATS服务器交互工具,非常适合需要与消息系统协作的AI驱动应用。

什么是MCP?

模型上下文协议(MCP)是一种开放协议,标准化应用程序如何向大型语言模型(LLM)提供上下文。该服务器实现了MCP规范,为LLM和AI应用提供NATS消息传递能力,使其能够:

  • 以标准化方式与NATS消息系统交互
  • 安全检查和监控NATS服务器及流
  • 通过安全接口执行只读操作
  • 与其他兼容MCP的客户端和主机集成

特色

  • 服务器管理(只读操作)
  • 列表和检查NATS服务器
  • 服务器健康监测与 ping
  • 服务器信息检索
  • 往返时间(RTT)测量

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-nats

A Model Context Protocol (MCP) server for NATS messaging system integration

This MCP server is certified by MCP Review.

Overview

This project provides a Model Context Protocol (MCP) server for NATS, enabling AI models and applications to interact with NATS messaging systems through a standardized interface. It exposes a comprehensive set of tools for interacting with NATS servers, making it ideal for AI-powered applications that need to work with messaging systems.

What is MCP?

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). This server implements the MCP specification to provide NATS messaging capabilities to LLMs and AI applications, allowing them to:

  • Interact with NATS messaging systems in a standardized way
  • Safely inspect and monitor NATS servers and streams
  • Perform read-only operations through a secure interface
  • Integrate with other MCP-compatible clients and hosts

Features

  • Server Management (Read-only Operations)
    • List and inspect NATS servers
    • Server health monitoring and ping
    • Server information retrieval
    • Round-trip time (RTT) measurement
  • Stream Operations (Read-only Operations)
    • View and inspect NATS streams
    • Stream state and information queries
    • Message viewing and retrieval
    • Subject inspection
  • Object Store Operations
    • Create and manage object store buckets
    • Put and get files from object stores
    • List buckets and their contents
    • Delete objects and buckets
    • Watch buckets for changes
    • Seal buckets to prevent updates
在 GitHub 查看完整 README

安装

docker run -i --rm --init -e NATS_URL -e NATS_SYS_CREDS ghcr.io/sinadarbouy/mcp-nats:0.1.4 --transport stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "nats": { "env": { "NATS_URL": "nats://localhost:4222", "NATS_SYS_CREDS": "<base64 of SYS account creds>", "NATS_A_CREDS": "<base64 of A account creds>" }, "url": "http://localhost:8000/mcp" } } }