Pinme Deploy MCP Server

Pinme Deploy MCP Server

Enables one-click deployment of static websites and HTML files to IPFS through Pinme. Automatically detects common build directories (build, dist, out, .next), uploads to IPFS, and provides ENS URLs for accessing deployed sites.

Category
Visit Server

README

Pinme Deploy MCP Server

一个 Model Context Protocol (MCP) 服务器,集成 Pinme 功能,帮助用户一键将静态网站部署到 IPFS 网络。

GitHub: https://github.com/liaoshengrong/pinme-deploy-mcp

功能特性

  • 🚀 一键上传: 快速将静态网站、HTML 文件或前端项目上传到 Pinme (IPFS)
  • 📁 灵活支持: 支持单个文件或整个目录上传
  • 🔍 智能检测: 自动检测常见的构建输出目录(build、dist、out、.next 等),无需手动指定路径
  • 🌐 状态检查: 通过 CID 或 ENS URL 检查已部署项目的状态和可访问性
  • 📋 部署列表: 查看所有已上传的项目历史记录,包括 CID、ENS URL 等信息

安装

方式一:从 GitHub 使用 npx(推荐,最简单)

无需安装,直接在 Cursor 配置文件中使用:

{
  "mcpServers": {
    "pinme-deploy": {
      "command": "npx",
      "args": ["-y", "git+https://github.com/liaoshengrong/pinme-deploy-mcp.git"]
    }
  }
}

如果遇到 npx 缓存错误,运行以下命令清理缓存后重试:

rm -rf ~/.npm/_npx

方式二:从 GitHub 全局安装

npm install -g github:liaoshengrong/pinme-deploy-mcp

然后在 Cursor 配置文件中添加:

{
  "mcpServers": {
    "pinme-deploy": {
      "command": "pinme-deploy-mcp"
    }
  }
}

方式三:使用安装脚本

curl -fsSL https://raw.githubusercontent.com/liaoshengrong/pinme-deploy-mcp/main/install.sh | bash

或下载后执行:

chmod +x install.sh
./install.sh

方式四:本地开发安装

git clone https://github.com/liaoshengrong/pinme-deploy-mcp.git
cd pinme-deploy-mcp
npm install
npm run build

然后在 Cursor 配置中使用绝对路径:

{
  "mcpServers": {
    "pinme-deploy": {
      "command": "node",
      "args": ["/absolute/path/to/pinme-deploy-mcp/dist/index.js"]
    }
  }
}

配置

环境变量

可选的环境变量:

  • PINME_API_KEY: Pinme API 密钥(如果使用 API 部署)

Pinme CLI

无需全局安装!工具会自动使用 npx 运行 Pinme CLI,无需提前安装。

如果需要手动安装(可选):

npm install -g pinme

使用方法

作为 MCP 服务器运行

npm start

在 Cursor 或其他 MCP 客户端中使用

  1. 配置 MCP 服务器路径
  2. 使用以下工具:

deploy_to_pinme

上传文件或目录到 Pinme。

参数:

  • path (可选): 要上传的文件或目录路径。如果未指定,会自动检测当前目录下的常见构建输出目录(build、dist、out、.next 等)

自动检测的目录:

  • build - React (Create React App)
  • dist - Vue, Vite, Webpack
  • out - Next.js (某些配置)
  • .next - Next.js
  • public - 某些静态站点
  • output - 某些项目
  • .output - Nuxt.js
  • site - 某些静态站点生成器

示例:

自动检测(推荐,无需指定路径):

{}

或指定目录:

{
  "path": "./build"
}

或上传单个文件:

{
  "path": "./index.html"
}

返回信息:

  • 预览地址(https://pinme.eth.limo/#/preview/...
  • IPFS CID
  • ENS 地址(https://xxxxx.pinit.eth.limo

check_pinme_status

检查已部署项目的状态。

参数:

  • cid (可选): IPFS CID(内容标识符)
  • ensUrl (可选): ENS URL(例如:https://xxxxx.pinit.eth.limo

示例:

{
  "cid": "bafkreiekm6o7tb4p53jtw7nwm42qlklqhdn37lj5jqoj4bdvjtfsgnr734"
}

或使用 ENS URL:

{
  "ensUrl": "https://f34fc1b3.pinit.eth.limo"
}

list_deployments

列出所有已上传的项目历史记录。

返回信息:

  • 文件名/项目名
  • 本地路径
  • IPFS CID
  • ENS URL(可访问的线上地址)
  • 文件大小
  • 文件数量
  • 类型(文件/目录)
  • 上传日期

开发

开发模式

npm run dev

监听模式

npm run watch

注意事项

  1. Pinme CLI: 必须安装 Pinme CLI(npm install -g pinme),否则工具无法工作
  2. 文件/目录: 支持上传单个文件(如 HTML)或整个目录(如构建后的静态网站)
  3. ENS URL: 上传成功后,会生成一个 ENS URL(格式:https://xxxxx.pinit.eth.limo),这是可访问的线上地址
  4. 预览地址: 上传后会返回一个预览地址(https://pinme.eth.limo/#/preview/...),用于在 Pinme 平台预览

技术栈

  • TypeScript
  • Model Context Protocol SDK
  • Node.js

许可证

MIT

使用示例

自动检测并上传构建目录(推荐)

# 在项目根目录下,无需指定路径,自动检测 build 或 dist 目录
# 在 Cursor 中调用 MCP 工具
deploy_to_pinme({})

上传指定的构建目录

# 在 Cursor 中调用 MCP 工具
deploy_to_pinme({ path: "./build" })
# 或
deploy_to_pinme({ path: "./dist" })

上传单个 HTML 文件

# 在 Cursor 中调用 MCP 工具
deploy_to_pinme({ path: "./index.html" })

查看上传历史

# 在 Cursor 中调用 MCP 工具
list_deployments()

React 项目部署流程

# 1. 构建项目
npm run build

# 2. 在 Cursor 中调用(自动检测 build 目录)
deploy_to_pinme({})

相关链接

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured