{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_zu4hr3wdjq7m","handle":"word-to-txt-mcp","url":"https://wellknown.network/agents/word-to-txt-mcp","links":{"self":"https://wellknown.network/agents/word-to-txt-mcp/record.json","html":"https://wellknown.network/agents/word-to-txt-mcp","markdown":"https://wellknown.network/agents/word-to-txt-mcp/record.md","api":"https://wellknown.network/api/v1/agents/word-to-txt-mcp","status":"https://wellknown.network/api/v1/agents/word-to-txt-mcp/status","claim":"https://wellknown.network/agents/word-to-txt-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/word-to-txt-mcp/claim.json","badge":"https://wellknown.network/agents/word-to-txt-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:word-to-txt-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"word-to-txt-mcp","summary":"FastMCP Word文档转文本分析服务器","description":"# Word to Text MCP Server \n \n一个基于FastMCP的Word文档转文本分析服务器包，提供Word文档处理、文本提取和内容分析功能。 \n \n## 功能特性 \n \n- 🔄 **Word文档转换**: 支持将.docx和.doc文件转换为纯文本 \n- 📊 **文档分析**: 提供文档统计、关键词提取、结构分析等功能 \n- 🚀 **MCP协议**: 基于FastMCP框架，支持多种传输协议 \n- 🛠️ **易于集成**: 可作为独立服务器运行或集成到其他应用中 \n- 📋 **表格支持**: 能够提取Word文档中的表格内容 \n \n## 安装 \n \n### 从PyPI安装 \n \n```bash \npip install word-to-txt-mcp \n``` \n \n### 从源码安装 \n \n```bash \ngit clone https://github.com/yourusername/word-to-txt-mcp.git \ncd word-to-txt-mcp \npip install -e . \n``` \n \n## 快速开始 \n \n### 命令行使用 \n \n启动MCP服务器： \n \n```bash \n# 使用默认配置启动（SSE协议，端口7264） \nword-to-txt-mcp \n \n# 指定端口和协议 \nword-to-txt-mcp --port 8080 --transport sse \n \n# 使用标准输入输出模式 \nword-to-txt-mcp --transport stdio \n``` \n \n### 编程接口使用 \n \n```python \nfrom word_to_txt_mcp import convert_word_to_text, create_mcp_server \n \n# 直接转换Word文档 \ntext_content = convert_word_to_text(\"document.docx\") \nprint(text_content) \n \n# 创建并运行MCP服务器 \nmcp = create_mcp_server(\"My Document Server\") \nmcp.run(transport=\"sse\", host=\"0.0.0.0\", port=7264) \n``` \n \n## API参考 \n \n### 核心函数 \n \n#### `convert_word_to_text(word_file_path)` \n \n将Word文档转换为文本内容。 \n \n**参数:** \n- `word_file_path` (str): Word文档的文件路径 \n \n**返回值:** \n- `str`: 提取的文本内容 \n \n**异常:** \n- `FileNotFoundError`: 当Word文件不存在时抛出 \n- `Exception`: 当转换过程中出现错误时抛出 \n \n#### `process_word_document(file_path)` \n \n处理Word文档，将其转换为文本并进行基础分析。 \n \n**参数:** \n- `file_path` (str): Word文档的文件路径 \n \n**返回值:** \n- `str`: 包含文档内容和基础分析的结果 \n \n#### `analyze_document_content(text_content, analysis_type=\"summary\")` \n \n分析文档内容。 \n \n**参数:** \n- `text_content` (str): 要分析的文本内容 \n- `analysis_type` (str): 分析类型，可选值： \n  - `\"summary\"`: 文档摘要分析 \n  - `\"keywords\"`: 关键词提取 \n  - `\"structure\"`: 文档结构分析 \n \n**返回值:** \n- `str`: 分析结果 \n \n### MCP工具 \n \n当作为MCP服务器运行时，提供以下工具： \n \n1. **process_word_document**: 处理Word文档并转换为文本 \n2. **analyze_document_content**: 分析文档内容 \n3. **echo_tool**: 回显文本（用于测试） \n \n### MCP资源 \n \n- `document://help`: 获取帮助信息 \n- `document://status/{file_path}`: 检查文档状态 \n \n### MCP提示 \n \n- `analyze_document`: 生成文档分析提示 \n \n## 配置选项 \n \n### 命令行参数 \n \n- `--transport`:…","publisher":{"name":"Your Name","url":null},"homepage":"https://github.com/yourusername/word-to-txt-mcp","repository":"https://github.com/yourusername/word-to-txt-mcp/issues","version":"0.1.0","license":"MIT","protocols":["mcp"],"tags":["mcp","fastmcp","word","document","text","analysis","docx","conversion","server","api"],"pricing":null,"endpoints":[{"url":"pypi:word-to-txt-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"documents.conversion","name":"Document Conversion","confidence":1,"provenance":"declared"},{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"}],"categories":["dev","documents"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"word-to-txt-mcp","registry":"pypi","observedAt":"2026-09-10T16:24:13.282Z","publishedAt":"2025-08-29T07:45:20.427587Z","latestVersion":"0.1.0"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"word-to-txt-mcp","url":"https://pypi.org/project/word-to-txt-mcp/","firstSeenAt":"2026-09-10T16:22:26.926Z","fetchedAt":"2026-09-10T16:22:26.926Z","normalizedAt":"2026-09-10T16:22:26.926Z"}]},"firstSeenAt":"2026-09-10T16:22:26.926Z","updatedAt":"2026-09-10T16:24:13.282Z"}