Docbot Mcp

io.github.rflukerii-dev由 GitHub 账号 rflukerii-dev 发布v1.0.4更新于 Oct 24, 2026

Bidirectional CSV <> JSON <> Markdown transformer

已验证STDIO仅桌面文件与存储数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,在 CSV、JSON 与 Markdown 之间互转,让助手把分隔符数据变成 JSON 数组或 Markdown 表格,也能反向转换。

可以做什么
把 CSV 文本解析为 JSON 数组字符串(csvToJson)。把 JSON 数组字符串序列化为 CSV(jsonToCsv)。把 CSV 文本渲染为格式化的 Markdown 表格(csvToMarkdown)。把 JSON 数组字符串渲染为 Markdown 表格(jsonToMarkdown)。所有工具均为文本输入、文本输出。
适用场景
适合在对话中需要重塑表格数据的场景:把粘贴的 CSV 转成 JSON 以便后续处理、从 JSON 生成 CSV,或把两者格式化为 Markdown 表格用于文档或回复。
运行要求
作为本地 Node.js 进程运行(需 Node.js 16+ 并支持 ES 模块),从 npm 包安装。README 描述了一个监听 3000 端口、端点为 /docbot-mcp 的 HTTP 服务器,另有面向本地客户端的 stdio 入口。未声明任何账号、API 密钥或环境变量。
安装前请注意
转换仅为文本输入输出,未描述文件或网络访问,用于结构化数据前请核对结果。README 的 HTTP 模式会开放本地端口,除非确需对外提供服务,否则应只绑定本机。README 与清单对传输方式的说法不一致,请确认客户端启动的是哪个入口。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Docbot Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

docbot-mcp

Bidirectional CSV ↔️ JSON ↔️ Markdown transformer exposed as an MCP (Model Context Protocol) server with HTTP transport.

Overview

docbot-mcp is a Model Context Protocol server that provides tools for converting between CSV, JSON, and Markdown formats. It's built on the Model Context Protocol and designed for deployment on serverless platforms like AWS App Runner.

Features

  • ✅ CSV to JSON — Parse CSV strings into JSON arrays
  • ✅ JSON to CSV — Serialize JSON arrays to CSV format
  • ✅ CSV to Markdown — Convert CSV to formatted Markdown tables
  • ✅ JSON to Markdown — Convert JSON arrays to Markdown tables
  • ✅ HTTP-based — REST API endpoint for easy integration
  • ✅ Containerized — Ready for deployment on AWS App Runner, Docker, etc.

Installation

bash
npm install

Requirements

  • Node.js 16+ (ES modules support)
  • Dependencies:
    • @modelcontextprotocol/sdk — MCP protocol implementation
    • @rflukerii/docbot — Document conversion utilities
    • express — HTTP server framework
    • zod — Input validation

Usage

Starting the Server

bash
npm start

The server starts on http://localhost:3000 with the MCP endpoint at /docbot-mcp.

Available Tools

All tools accept input as text parameters and return formatted text responses.

csvToJson

Converts a CSV string to JSON format.

Input: csv (string)
Output: JSON array as string

bash
curl -X POST http://localhost:3000/docbot-mcp \  -H "Content-Type: application/json" \  -d '{"tool": "csvToJson", "input": {"csv": "name,age\nAlice,30"}}'
jsonToCsv

Converts a JSON array to CSV format.

Input: json (string)
Output: CSV string

bash
curl -X POST http://localhost:3000/docbot-mcp \  -H "Content-Type: application/json" \  -d '{"tool": "jsonToCsv", "input": {"json": "[{\"name\":\"Alice\",\"age\":30}]"}}'
csvToMarkdown

Converts a CSV string to a Markdown table.

Input: csv (string)
Output: Markdown table string

jsonToMarkdown

Converts a JSON array to a Markdown table.

Input: json (string)
Output: Markdown table string

Architecture

HTTP Transport

The server uses StreamableHTTPServerTransport instead of stdio for better compatibility with containerized environments. Each request to /docbot-mcp creates a new server instance, processes the MCP request, and returns the result.

Express Server (port 3000)    ↓POST /docbot-mcp endpoint    ↓MCP Server instance (createServer)    ↓StreamableHTTPServerTransport    ↓Tool execution (csvToJson, jsonToCsv, etc.)    ↓Response back to client

File Structure

  • index.js — Main HTTP server entry point (AWS App Runner compatible)
  • index-stdio.js — Stdio transport version (for local/stdio-based clients)
  • package.json — Dependencies and scripts

Deployment

AWS App Runner

The server includes a start script configured for AWS App Runner:

json
{  "scripts": {    "start": "node index.js"  }}

Steps to deploy:

  1. Push code to AWS CodeCommit, GitHub, or BitBucket
  2. Create AWS App Runner service
  3. Configure source as your repository
  4. Set build command: npm install
  5. Set start command: npm start
  6. App Runner will automatically run the server on port 3000

Docker

Example Dockerfile:

dockerfile
FROM node:18-alpineWORKDIR /appCOPY package*.json ./RUN npm install --productionCOPY . .EXPOSE 3000CMD ["npm", "start"]

Development

Switching Between Transports

  • HTTP (default): node index.js — For containerized environments
  • Stdio: node index-stdio.js — For direct CLI/stdio clients

Adding New Tools

Edit index.js and use the server.registerTool() pattern:

javascript
server.registerTool(  'toolName',  {    title: 'Display Title',    description: 'What it does',    inputSchema: { paramName: z.type() }  },  async ({ paramName }) => ({    content: [{ type: 'text', text: 'result' }]  }));

License

MIT

Changelog

See CHANGELOG.md for version history and updates.

来源:README.md,提交 a6a2c3e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.4最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。