Pinin-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PININ_API_KEY | Yes | ||
| PININ_MCP_URL | No | https://pinin.ai/api/mcp | |
| PININ_MCP_DEBUG | No | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Pinin restores historical photographs: colorization, damage repair, detail enhancement, fade recovery and upscaling. Every image costs one credit, charged when the job settles and refunded automatically if it fails. Restored files are retained for 30 days. Workflow: call pinin_restore_photo, then poll pinin_get_restoration (honour its retry_after) or let the account's webhook notify you, then call pinin_download_restoration for a signed link. Restoration takes seconds to a couple of minutes. Do not call pinin_restore_photo again to "retry" a slow job — that costs another credit. Pass an idempotency_key so a repeat submit returns the first job instead of charging twice. Use pinin_get_account before a large batch to read the plan, the batch cap and the credit balance.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pinin_restore_photoA | Queue photographs for restoration — damage repair, colorization, deblurring, upscaling — on the account behind the key. Send one photo as a public https |
| pinin_get_restorationA | Read one restoration by id: status ( |
| pinin_list_restorationsA | List the account's restorations, newest first, one page at a time, with |
| pinin_download_restorationA | Get the signed URL for a finished photograph, valid about an hour, with |
| pinin_cancel_restorationA | Cancel a restoration that has not started processing. A queued job has not been charged, so cancelling costs nothing and refunds nothing; once the pipeline has picked it up the call fails with |
| pinin_get_accountA | Read the account behind the key: plan tier and status, credit balance, batch cap, concurrency, the key's requests per minute, the monthly cap and spend so far, and how many keys are active. Read it before queueing a large batch to size the request, and after a plan or balance failure — it stays readable on an empty balance, so a blocked account can see why. Read-only and free. For per-day history use pinin_get_usage. |
| pinin_get_usageA | Read usage analytics for the last |
| pinin_list_modesA | List the restoration modes available to this account, each with its id, display name, what it changes in the photograph and its credit cost. Read it before choosing |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a distinct action on a distinct resource: create (restore_photo), read one (get_restoration), read many (list_restorations), cancel, download, plus modes/account/usage metadata. The descriptions actively pre-empt confusion, e.g. restore_photo explicitly excludes reading/listing/cancelling, and list_restorations says when to prefer it over get_restoration. The only mild overlap — download_restoration versus the URLs returned by get_restoration on a completed job — is called out and resolved in the text.
Every tool follows the same `pinin_` prefix plus a snake_case verb_noun pattern (get_restoration, list_restorations, cancel_restoration, download_restoration). Verbs are used consistently for their semantics: get for single reads, list for collections, cancel/download for the specific operation.
Eight tools is well within the sweet spot and each one earns its place — the create/read/list/cancel/download core plus three small metadata reads. Nothing appears redundant or padded; no operation is split into near-duplicate variants.
The full job lifecycle is covered: discover modes, size the account, submit, poll or sweep, cancel before processing, and fetch results, with usage analytics for spend questions. Minor gaps remain — no way to delete or purge jobs, no callback/webhook push alternative to polling, and no explicit re-submit/retry helper for failed jobs. These are workarounds an agent can manage, not dead ends.