Piotr’s tools

A private remote MCP server at https://mega-dev.duckdns.org/mcp. Supports 2026-07-28 and 2025-11-25.

Tools and schemas

All successful results include structuredContent matching the declared outputSchema and a text JSON copy. Input and output schemas use JSON Schema 2020-12. Extra input keys are rejected.

memo_write

Save a private note durably in the owner workspace. Notes stay until the owner deletes them. Returns its id.

Input schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

memo_search

Find private notes by case-insensitive literal substring. Empty query returns all notes, newest first. Up to 1000 notes; results include id, text, createdAt.

Input schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 1000
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "notes": {
      "type": "array",
      "maxItems": 1000,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1
          },
          "text": {
            "type": "string",
            "maxLength": 100000,
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "maxLength": 40
          }
        },
        "required": [
          "id",
          "text",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "notes"
  ],
  "additionalProperties": false
}

upload

Upload a file as base64 data with a filename and optional mimeType (default application/octet-stream). Maximum decoded size 25 MB. Returns a public link on this server, valid for 30 days. Anyone with the link can download it. Never upload secrets.

Input schema

{
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
    },
    "data": {
      "type": "string",
      "maxLength": 33333336,
      "description": "RFC 4648 standard base64-encoded file bytes, not a local path or data URI."
    },
    "mimeType": {
      "type": "string",
      "maxLength": 100,
      "pattern": "^[a-zA-Z0-9.+-]+/[a-zA-Z0-9.+-]+$"
    }
  },
  "required": [
    "filename",
    "data"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1,
      "pattern": "^https?://"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

transcribe

Download public HTTP(S) audio (up to 25 MB, 10 minutes) and transcribe locally using multilingual Whisper small. Returns segments with start/end in seconds and text. No external speech API, no paid key. Private network URLs and nonstandard ports are blocked. Input audio is deleted after processing; results are in private request logs for 7 days.

Input schema

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1,
      "pattern": "^https?://"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "properties": {
          "start": {
            "type": "number",
            "minimum": 0
          },
          "end": {
            "type": "number",
            "minimum": 0
          },
          "text": {
            "type": "string",
            "maxLength": 100000
          }
        },
        "required": [
          "start",
          "end",
          "text"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "segments"
  ],
  "additionalProperties": false
}

Sign-in and authorization

Tools require OAuth 2.1 authorization-code access with PKCE S256. Discover the authorization server using protected resource metadata. Public clients may use HTTPS Client ID Metadata Documents; dynamic registration is also supported. Registration alone grants no access.

The owner must enter their local owner key and explicitly allow each client. Consent shows client identity and callback. Only use a flow you started. Clients share this one owner workspace. Tokens are audience-bound to this MCP endpoint, expire after one hour, and can be refreshed for 30 days with rotating refresh tokens. The issuer is returned in authorization responses.

Stored data and limits

Revoke or remove

The owner can revoke a client with the local admin command; OAuth clients can use the revocation endpoint. Revocation blocks existing access and refresh tokens. The owner can delete individual notes and files, or stop both services to remove public access. Deleting an uploaded file does not delete copies already downloaded.

Tools and stored text cannot authorize further accounts, payments, publication, or access grants.