Document Tools
by File1979
Document Tools
A Python package implementing a variety of document-related tools for converting and processing document formats. These tools are exposed through an MCP server interface for seamless integration with AI assistants.
Setup
# Create a virtual env and activate it
uv venv
source .venv/bin/activate
# Install the package in development mode
uv pip install -e .Running
# Start the MCP server
uv run main.pyTesting
# Run all tests
uv run pytestDevelopment
Tool Definitions
Tools are defined as Python functions and registered with the MCP server:
mcp.tool()(my_function)Tool descriptions should:
Begin with a one-line summary
Provide detailed explanation of functionality
Explain when to use (and not use) the tool
Include usage examples with expected input/output
Use Field from pydantic for parameter descriptions:
from pydantic import Field
def my_tool(
param1: str = Field(description="Detailed description of this parameter"),
param2: int = Field(description="Explain what this parameter does")
) -> ReturnType:
"""Comprehensive docstring here"""
# ImplementationLatest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/File1979/mcp-document-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server