{
  "$schema": "https://modelcontextprotocol.io/schemas/server-card.json",
  "name": "PottoTools MCP Server",
  "version": "1.0.0",
  "description": "Client-side privacy-first PDF, document, and image processing tools for AI agents and users. 100% in-browser processing via WebAssembly.",
  "homepage": "https://pottotools.in/",
  "endpoint": "https://pottotools.in/api/mcp",
  "transport": "sse",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": false
  },
  "contact": {
    "name": "PottoTools Support",
    "email": "sharma.amit1091@gmail.com",
    "url": "https://pottotools.in/contact"
  },
  "resources": [
    {
      "uri": "https://pottotools.in/llms.txt",
      "name": "LLMs Summary",
      "description": "Concise Markdown directory of all tools and features.",
      "mimeType": "text/plain"
    },
    {
      "uri": "https://pottotools.in/llms-full.txt",
      "name": "Full LLM Documentation",
      "description": "Complete Markdown guide of tools, inputs, formats, and browser guarantees.",
      "mimeType": "text/markdown"
    }
  ],
  "tools": [
    {
      "name": "compress_pdf",
      "description": "Reduce PDF file sizes down to strict targets such as 100KB, 200KB, 500KB, or custom KB targets with zero server uploads.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "description": "URL or data URI of the PDF file to compress"
          },
          "targetSizeKB": {
            "type": "number",
            "description": "Target file size in KB (e.g. 100, 200, 500)"
          }
        },
        "required": ["fileUrl"]
      }
    },
    {
      "name": "merge_pdf",
      "description": "Combine multiple PDF documents into a single organized file with custom sequence ordering.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Array of PDF file URLs or data URIs in merge order"
          }
        },
        "required": ["files"]
      }
    },
    {
      "name": "split_pdf",
      "description": "Split a PDF document into separate files by page ranges or individual pages.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "description": "URL or data URI of the PDF file"
          },
          "range": {
            "type": "string",
            "description": "Page range string (e.g. '1-3', '5,8-10')"
          }
        },
        "required": ["fileUrl", "range"]
      }
    },
    {
      "name": "pdf_to_word",
      "description": "Convert PDF files into editable Microsoft Word (.docx) documents preserving layout, text, tables, and photos.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "description": "URL or data URI of the PDF file to convert"
          }
        },
        "required": ["fileUrl"]
      }
    },
    {
      "name": "custom_photo_studio",
      "description": "Resize, crop, straighten, color adjust, compress to target KB, and convert image formats (JPG, PNG, WebP) in a single workflow.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "imageUrl": {
            "type": "string",
            "description": "URL or data URI of the image"
          },
          "targetKB": {
            "type": "number",
            "description": "Optional target file size in KB"
          },
          "format": {
            "type": "string",
            "enum": ["jpg", "png", "webp"],
            "description": "Output format"
          }
        },
        "required": ["imageUrl"]
      }
    },
    {
      "name": "ocr_scanner",
      "description": "Extract text from scanned PDFs, photos, and receipts using in-browser Optical Character Recognition supporting English and Hindi.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileUrl": {
            "type": "string",
            "description": "URL or data URI of the image or scanned PDF"
          },
          "language": {
            "type": "string",
            "enum": ["eng", "hin"],
            "description": "OCR recognition language"
          }
        },
        "required": ["fileUrl"]
      }
    }
  ]
}
