Token导航 LogoToken导航TokenDH.com
docsynthai (Raahulrawat) logo
文档知识未说明官方级别未说明来源级核验

docsynthai (Raahulrawat)

MCP Server

DocSynthAI是一个基于MCP协议的模块化文档理解平台,提供AI驱动的文档分类、规则和LLM分类模式,支持STDIO MCP服务器和客户端集成,适用于文档处理和知识图谱创建。

工具数

9

提示词数

0

GitHub Stars

1

资源数

0
文档处理知识图谱PythonCursorCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

raahulrawat

提供方

raahulrawat

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

DocSynthAI – Intelligent Document Processing MCP Server

3.11-blue?logo=python&logoColor=white" />

A modular, extensible, next-generation document understanding engine powered by MCP (Model Context Protocol) and Gemini Vision.

Quick Overview

DocSynthAI is a modular document understanding platform built on MCP. It provides:

AI-powered document classification (Gemini Vision integration)

Rule-based & general LLM classification modes

STDIO MCP server and async STDIO client for local/dev integration

Roadmap: Extraction → Validation → Knowledge Graph creation → HTTP/SSE transport

Install & Setup

  1. Clone

git clone https://github.com/raahulrawat/docsynthai.git

  1. Python packages

Install dependencies (recommended to use a virtualenv):

python -m venv .venv

Run — MCP Server (STDIO) — Current

This starts the MCP server in STDIO mode (default/current). Clients connect over stdio pipes.

Start server (local)

python server.py

Start server (explicit stdio mode)

DOCSYNTH_TRY_HTTP=0 python server.py

By default the server will load rules from classifier_rules.json if present and persist rules to that file. The server exposes the following MCP tools:

setup_classifier

create_rule

get_all_rules

delete_rule

classify_document

Running the STDIO client demo

python mcp_stdio_client.py

The demo will: launch the server subprocess, do MCP initialization, ask for API key, and let you classify a local image file.

Run — HTTP & SSE (Next Release)

Planned in the next release:

HTTP Transport: mcp.run(transport="http", host="0.0.0.0", port=8000) — REST-like access to tools

SSE Transport: streaming support for long-running/extraction tasks

When HTTP is enabled you will be able to run:

python server.py # will detect DOCSYNTH_TRY_HTTP=1 and bind to host/port

Client libraries will be updated to support HTTP tool discovery and SSE streaming.

Running MCP Server JSON (STDIO config)

Use this sample JSON for external orchestrators or MCP host configs (e.g., Cursor / IDE tool integrations):

{ "mcpServers": { "docsynth": { "command": "python", "args": [ "server.py" ], "transport": { "type": "stdio" }, "env": {} } } }

Save as .mcp/docsynth-mcp.json or include in your MCP host configuration. This tells an MCP host to spawn server.py and connect via stdio.

Classification Roadmap (current support)

Core pipeline stages we implement or plan to implement — each becomes an MCP tool.

Stage 1 — Classification (current)

Rule-based classification (user-defined rules)

General LLM classification (Gemini Vision)

Single-image & batch classification

Strict JSON response format for downstream parsing

Stage 2 — Extraction (next)

Key–Value pair extraction (KV)

Table extraction → CSV/JSON

Multi-page PDF → page images conversion (optional helper)

Tool: extract_document

Stage 3 — Validation

Field-level validation (PAN/Aadhaar format, dates, totals)

Cross-document validation (e.g., PAN ↔ Bank Statement)

Rule-based & model-assisted validation

Tool: validate_document

Stage 4 — Knowledge Graph Creation

Triplet extraction (subject, predicate, object)

Ontology mapping & transformation

Neo4j / Memgraph integrations

Tool: kg_insert, kg_generate_triplets

Testing & Development Tips

Use DocumentClassifier(mock_mode=True) for fast local tests without Gemini API calls.

Persist rules in classifier_rules.json to re-use definitions across restarts.

To test HTTP mode when implemented, set DOCSYNTH_TRY_HTTP=1 and pass DOCSYNTH_HOST/DOCSYNTH_PORT.

Create pytest tests that launch the server subprocess via stdio and call the client (mock_mode recommended).

Contributing

PRs welcome. Suggested first issues:

HTTP transport adapter & docs

SSE streaming for long extraction jobs

PDF→image helper & multi-page handling

KG connector for Neo4j

Please follow the code style, add tests, and include changelog entries for breaking changes.

© DocSynthAI — Built for MCP experimentation and production prototyping

目录标签

目录标签

文档处理知识图谱PythonCursor本地部署AI分类MCP协议LLM集成

支持客户端

Cursor

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

9

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明api-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP