Skip to main content
Glama

test-1

by zhendi

TinyPNG 的 MCP 服务器

用法

使用bunnode运行服务器

  1. 安装依赖项并构建
pnpm i pnpm build
  1. 编辑mcp.json文件
{ "mcpServers": { "tinypng": { "command": "bun", // or "node" "args": ["/path/to/tinypng-mcp-server/src/index.ts"], // or "dist/index.js" "env": { "TINYPNG_API_KEY": "your-tinypng-api-key" } } } }

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 TinyPNG MCP 服务器:

npx -y @smithery/cli install @aiyogg/tinypng-mcp-server --client claude

工具

  1. 压缩本地图片
{ name: 'compress_local_image', description: 'Compress a local image file', inputSchema: { type: 'object', properties: { imagePath: { type: 'string', description: 'The ABSOLUTE path to the image file to compress', example: '/Users/user/Downloads/image.jpg', }, outputPath: { type: 'string', description: 'The ABSOLUTE path to save the compressed image file', example: '/Users/user/Downloads/image_compressed.jpg', }, outputFormat: { type: 'string', description: 'The format to save the compressed image file', enum: SUPPORTED_IMAGE_TYPES, example: 'image/jpeg', }, }, required: ['imagePath'], }, }
  1. 压缩远程图像
{ name: 'compress_remote_image', description: 'Compress a remote image file by giving the URL of the image', inputSchema: { type: 'object', properties: { imageUrl: { type: 'string', description: 'The URL of the image file to compress', example: 'https://example.com/image.jpg', }, outputPath: { type: 'string', description: 'The ABSOLUTE path to save the compressed image file', example: '/Users/user/Downloads/image_compressed.jpg', }, outputFormat: { type: 'string', description: 'The format to save the compressed image file', enum: SUPPORTED_IMAGE_TYPES, example: 'image/jpeg', }, }, required: ['imageUrl'], }, }

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

测试-1

  1. 用法
    1. 使用bun或node运行服务器
      1. 通过 Smithery 安装
        1. 工具

          Related MCP Servers

          View all related MCP servers

          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/zhendi/tinypng-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server