Rust MCP server built with the poem framework

Rust MCP server built with the poem framework

poemcp•byrggh

A Rust MCP server exposing counter, adder, IPv4 validation, and CIDR checking tools over an SSE endpoint.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides counter tools to increment, decrement, and retrieve the current counter value.
  • •Provides an adder tool that adds two integers together.
  • •Validates whether a string is a valid IPv4 address.
  • •Checks whether an IP address falls within a specified CIDR range.

BEST FOR

  • •Developers building Rust web applications who want to expose MCP tools over SSE using the poem framework.
  • •Testing IP address validation and CIDR membership checks through an MCP tool interface.

ABOUT POEMCP

Rust MCP server built with the poem framework is cataloged as an MCP server attributed to rggh. A Rust MCP server exposing counter, adder, IPv4 validation, and CIDR checking tools over an SSE endpoint. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Rust MCP server built with the poem framework are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server expose its tools to clients?

The tools are exposed through a Server-Sent Events endpoint at /sse, allowing real-time client interaction.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 5e07744ad245 · 采集于 2026-11-13 12:28:02 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Server with Combined Tools

This project implements a Model Context Protocol (MCP) server in Rust using the poem framework. The server provides multiple tools for managing counters, adding numbers, validating IP addresses, and checking if an IP is in a CIDR range. The tools are exposed via a Server-Sent Events (SSE) endpoint, allowing clients to interact with the server in real-time.

Features

  • Counter:

    • Increment, decrement, and get the current value of a counter.
  • Adder:

    • Add two integers together.
  • IP Validator:

    • Validate if a given string is a valid IPv4 address.
  • CIDR Checker:

    • Check if an IP address is within a specified CIDR range.

Endpoints

  • /sse: A Server-Sent Events (SSE) endpoint that exposes the tools in real-time.

Tools

  • Increment: Increment the counter by 1.
  • Decrement: Decrement the counter by 1.
  • Get Value: Retrieve the current counter value.
  • Add: Add two numbers together.
  • Is Valid IPv4: Check if a string is a valid IPv4 address.
  • Is IP in CIDR: Check if an IP address is within a CIDR range.

Setup

Requirements

  • Rust 1.60 or higher
  • Cargo (Rust's package manager and build system)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/mcp-server.git
    cd mcp-server
    
  2. Build the project:

    cargo build --release
    
  3. Run the server:

    cargo run
    

The server will start and listen on http://127.0.0.1:8000.

Dependencies

  • poem: A web framework for Rust.
  • poem_mcpserver: A library for implementing MCP servers with tools and SSE endpoints.
  • tokio: Asynchronous runtime for Rust.

Example Usage

Once the server is running, you can connect to the /sse endpoint via an SSE client. Here's an example using JavaScript in the browser:

const eventSource = new EventSource('http://127.0.0.1:8000/sse');

eventSource.onmessage = function(event) {
    console.log('Received data:', event.data);
};

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Rust MCP server built with the poem framework from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/poemcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools