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 分

    請在儲存庫或註冊中心條目中宣告授權條款。