Document Server

•

Provides a Python-based Model Context Protocol (MCP) server and client for managing mock documents, enabling LLMs to interact with custom tools, resources, and prompts.

This Python-based project implements a Model Context Protocol (MCP) server and client designed to facilitate interaction with mock documents. It provides a robust server interface for reading and editing a predefined set of documents, alongside a client demonstrating programmatic tool invocation. The server exposes specialized tools, resources, and prompt templates, enabling seamless integration with Large Language Models (LLMs) and MCP-compatible agents to autonomously query and modify document content.

主要功能

01Includes a prompt template for LLMs to rewrite documents in Markdown format
02Features a Python MCP client for programmatic tool invocation and server interaction
03Perform find-and-replace edits on document contents via a server tool
040 GitHub stars
05List available document IDs and fetch contents through URI resources
06Read document contents by ID using a dedicated server tool

使用案例

01Enable LLMs to autonomously query and edit specified documents
02Integrate with MCP agents like Claude Desktop, Cursor, or Antigravity for document interaction
03Provide document context and manipulation capabilities to AI assistants