MCP server template with a number-comparison tool

MCP server template with a number-comparison tool

llm-mcp-server-template•bycoderzzy

A template project pairing an MCP server that provides a number-comparison capability with clients demonstrating several ways to call it.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Implements an MCP server whose example capability is comparing numbers.
  • •Supports local development and debugging of the server using mcp-server-inspector.
  • •Includes clients showing model-driven calls to the server, including an OpenAI-based client.

BEST FOR

  • •Developers starting an MCP server project who want a template with a working example tool and client examples.
  • •Learning how a model calls MCP tools through a client.

ABOUT LLM-MCP-SERVER-TEMPLATE

MCP server template with a number-comparison tool is cataloged as an MCP server attributed to coderzzy. A template project pairing an MCP server that provides a number-comparison capability with clients demonstrating several ways to call it. 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: Not specified. 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 MCP server template with a number-comparison tool 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

What capability does the example MCP server provide?

The example server provides a number-comparison capability, and the README frames MCP servers generally as offering abilities such as math calculation, file reading/writing, and network requests.

What kinds of MCP server deployment are described?

Local Stdio servers called directly by a client, and remote aggregation-platform SSE servers.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2e26f3aad391 · 采集于 2026-11-13 10:57:05 UTC

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

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

llm-mcp-server-template

LLM-MCP server 开发的模版项目

  • server为数字比大小能力
  • client为各模型、各种调用方式

MCP

  • https://modelcontextprotocol.io/introduction
  • 简单理解,
    • 模型(client)是大脑,负责规划和执行文本类任务,如第一步写代码,第二步执行,第三步分析。
    • MCP(Server)是工具,负责提供模型需要的其他能力,如数学计算、文件读写、网络请求等。

MCP-Server

  • 主要负责实现mcp能力,如数学计算、文件读写、网络请求等
  • https://modelcontextprotocol.io/quickstart/server
  • 开发过程中,可以使用 mcp-server-inspector 工具协助调试
  • 几种类型的server:
    • 1、本地Stdio,client直接调用本地的server文件(python or nodejs)
      • plus: 把node项目推远程npm仓库,npx运行,实现半远程调用的效果
    • 2、远程聚合平台SSE,如Glama.ai、MCP.so等

MCP-Client

  • 主要负责协调模型和mcp-server,最终实现"模型调用了mcp能力"
  • 几种类型的client:
    • 1、直接用现成的客户端软件,如Cursor、MCP Inspector等。
    • 2、云平台上的各种智能体agent,如阿里云百炼应用管理。
    • 3、自己写脚本支持

项目相关

环境准备

# 安装 uv 包管理工具,若已有,则跳过
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.local/bin/env
uv --version

# 安装python3.10,若已有,则跳过
uv python list
uv python install 3.10

cd server
# server 目录,创建虚拟环境, 若已有,则跳过
uv venv --python 3.10
source .venv/bin/activate
uv add "mcp[cli]" httpx

# server目录,开发的时候用mcp-server-inspect调试
mcp dev math.py

cd client
# client 目录,创建虚拟环境, 若已有,则跳过
uv venv --python 3.10
source .venv/bin/activate
uv add openai openai-agents socksio
touch .env  # 在.env文件中,设置OPENAI_API_KEY等

# client 目录,正常运行
source .venv/bin/activate
python openai_client.py

项目结果

MCP Server,mcp-server-inspect调试页面: mcp-server-inspect

MCP Client,不使用mcp和使用mcp的对比:

  • 命令行调用结果: openai_client_result1
  • openai的dashboard上的log记录, mcp确实是两次调用: openai_client_result2

TODO

1、 mcp-server,本地开发和调试
2、mcp-server,发布远程托管平台
3、mcp-client,使用openai-agent-sdk调用server
4、mcp-client,使用anthropic-sdk调用本地server
5、mcp-client,使用原生的写法(参考https://deepseek.csdn.net/67e383ff45a25f3de59f7bb0.html)调用本地server 6、mcp-client,使用langchain-mcp-adapter调用server
7、固定功能的 mcp-client + mcp-server,使用electron封装成桌面应用

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 MCP server template with a number-comparison tool 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/llm-mcp-server-template)

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