MD2Poster MCP Server

$npx -y @pidanmoe/mcp-md2poster
README.md

A FastMCP-based toolkit for mathematical operations and GitHub integration

mcp-md2poster

这是一个基于 FastMCP 框架构建的 MCP (Model Context Protocol) 工具包。

功能

当前实现了一个简单的数学工具:

  • add: 用于执行两个数字相加的操作

部署 MCP

{
  "mcpServers": {
    "mcp-md2poster": {
      "args": ["-y","@pidanmoe/mcp-md2poster"],
      "command": "npx",
      "env": {
        "GITHUB_TOKEN": "{{GITHUB_TOKEN}}",
        "GITHUB_OWNER": "{{GITHUB_OWNER}}",
        "GITHUB_REPO": "{{GITHUB_REPO}}",
        "GITHUB_BRANCH": "{{GITHUB_BRANCH}}", // 默认为 main
        "FOLDER": "{{FOLDER}}" // 默认为 uploads
      }
    }
  }
}

使用说明

该项目遵循 Model Context Protocol 规范,可以通过标准 I/O 或其他传输方式与支持 MCP 的客户端进行通信。

工具介绍

add

用于执行两个数字相加的操作

  • 必填参数:
    • a: 第一个操作数
    • b: 第二个操作数
  • 返回: a + b 的值

安装依赖

bun install

运行项目

bun run dev

调试项目

bun run inspect

构建项目

bun run build

项目结构

技术栈

  • Bun - JavaScript/TypeScript 运行时
  • FastMCP - MCP 框架
  • Zod - TypeScript-first schema declaration and validation library

此项目使用 bun v1.2.19 创建。Bun 是一个快速的一体化 JavaScript 运行时。

Tools (1)

addUsed to perform the operation of adding two numbers together

Environment Variables

GITHUB_TOKENrequiredGitHub personal access token for repository integration
GITHUB_OWNERrequiredThe owner of the GitHub repository
GITHUB_REPOrequiredThe name of the GitHub repository
GITHUB_BRANCHThe branch to use (defaults to main)
FOLDERThe target folder for uploads (defaults to uploads)

Configuration

claude_desktop_config.json
{"mcpServers": {"mcp-md2poster": {"args": ["-y","@pidanmoe/mcp-md2poster"],"command": "npx","env": {"GITHUB_TOKEN": "{{GITHUB_TOKEN}}","GITHUB_OWNER": "{{GITHUB_OWNER}}","GITHUB_REPO": "{{GITHUB_REPO}}","GITHUB_BRANCH": "{{GITHUB_BRANCH}}","FOLDER": "{{FOLDER}}"}}}}

Try it

Add 125 and 347 for me.
What is the sum of 10.5 and 20.3?
Use the add tool to calculate 1024 plus 2048.

Frequently Asked Questions

What are the key features of MD2Poster?

Built on the FastMCP framework for Model Context Protocol compliance. Includes a mathematical 'add' tool for numeric operations. Configurable environment for GitHub repository and branch integration. Supports Bun runtime for high-performance execution. Integrated logging utility for debugging and monitoring.

What can I use MD2Poster for?

Performing basic arithmetic calculations within an AI chat interface. Setting up a foundation for GitHub-based content management and uploads. Developing MCP tools using TypeScript and Zod for schema validation. Remote-capable hosting for MCP services.

How do I install MD2Poster?

Install MD2Poster by running: npx -y @pidanmoe/mcp-md2poster

What MCP clients work with MD2Poster?

MD2Poster works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use MD2Poster with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free