pshare-share-mcp
pshare-share-mcp
MCPサーバーは、あらゆるAI(Claude Code、Claude Desktop、その他のMCPクライアント)がファイル/フォルダーをPshareにアップロードし、共有リンクを受け取れるようにします。UIからアップロードして共有ボタンを押してリンクをコピーする手動操作とまったく同じです。
ログインやトークンは一切不要です。Pshareの現在のアーキテクチャと一貫しています(Webクライアント自体も実際には認証を行わず、自動生成されたX-Browser-Idのみを使用します)。
要件: Pshare のインスタンスがどこか(localhostまたはLAN内)で実行されている必要があります。このリポジトリはPshareのREST APIを呼び出すMCPサーバーであり、Pshare自体を実行するものではありません。
提供ツール
pshare_upload
フィールド | 必須 | 説明 |
| ✅ | MCPサーバーが実行されているマシン上の絶対パス(ファイルまたはフォルダー)の配列。フォルダーは再帰的にアップロードされ、サブフォルダー構造が保持されます。 |
| ❌ | 共有カードに表示されるタイトル |
| ❌ | 受信者に表示される送信者名 |
| ❌ | 共有リンクを開くためのパスワード |
| ❌ | 共有カードに表示される説明 |
| ❌ | リンクの有効期限(分)。空の場合は期限切れなし |
返される結果: http://<pshare-host>/?share=<N> 形式の共有リンクと、ファイル数とパスワードステータス。
90MBを超えるファイルは自動的にチャンクアップロード(WebクライアントのLANアップロード動作と同様)に切り替わります。追加の操作は不要です。
Related MCP server: SharePoint MCP Server
インストール
このリポジトリをクローンするだけです。Pshare全体をダウンロードする必要はありません:
git clone https://github.com/ntanhprt/Pshare-mcp.git
cd Pshare-mcp
pnpm install
pnpm build # biên dịch ra dist/設定(環境変数)
変数 | デフォルト | 説明 |
|
| MCPがアップロード/共有のために呼び出すPshareサーバーのURL |
|
| HTTPトランスポート実行時のバインドホスト |
|
| HTTPトランスポート実行時のポート |
| (未設定) | 許可するホストのカンマ区切りリスト。 |
localhostは、MCPサーバーがPshareを実行しているのと同じマシンで実行されている場合にのみ正しく機能します。localhostは常に「そのプロセスを実行しているマシン自身」を指すため、Pshareを実行しているマシンとは異なるマシン/ラップトップ(同じLAN内であっても)にこのMCPをインストールする場合は、Pshareを実行しているマシンの実際のIPアドレスに変更する必要があります。たとえば、PshareがIP192.168.3.7のマシンで実行されている場合:PSHARE_BASE_URL=http://192.168.3.7:5173 claude mcp add pshare-share -- node "$(pwd)/dist/index.js"
localhostのデフォルトは、Pshareを実行しているのと同じマシンでMCP(stdio)を実行する場合にのみ保持してください。
単体で試す
# stdio (mặc định)
pnpm start
# HTTP/SSE — AI ở máy khác trong LAN cũng gọi được
pnpm start:http
# → nghe tại http://<PSHARE_MCP_HOST>:<PSHARE_MCP_PORT>/mcp他の開発者向け統合ガイド
1. Claude Codeで使用する(stdioトランスポート — AIがPshareと同じマシン/ホストで実行される場合に推奨)
クローンしてビルドした後(上記のインストールセクションを参照)、Pshare-mcp ディレクトリ内から:
claude mcp add pshare-share -- node "$(pwd)/dist/index.js"別のマシンでPshareを指定するには、-e でenvを渡します(設定セクションの localhost に関する注意を参照):
claude mcp add pshare-share \
-e PSHARE_BASE_URL=http://192.168.3.7:5173 \
-- node "$(pwd)/dist/index.js"登録されているか確認:
claude mcp list2. Claude Desktopで使用する(stdioトランスポート)
設定ファイル(macOSでは ~/Library/Application Support/Claude/claude_desktop_config.json、Windowsでは %APPDATA%\Claude\claude_desktop_config.json)を開き、次を追加します:
{
"mcpServers": {
"pshare-share": {
"command": "node",
"args": ["/đường/dẫn/tuyệt/đối/tới/Pshare-mcp/dist/index.js"],
"env": {
"PSHARE_BASE_URL": "http://localhost:5173"
}
}
}
}Claude Desktopを再起動して、pshare_upload ツールを認識させます。
3. HTTP/SSE経由で使用する(AIが同じLAN内の別のマシンで実行されている場合)
Pshareをホストしているマシン(またはPshareに到達できる任意のマシン)でMCPサーバーを実行します:
PSHARE_BASE_URL=http://localhost:5173 pnpm start:httpクライアントマシン(Claude Code、またはHTTPトランスポートをサポートするMCPクライアント)で、次を指定します:
http://<IP-máy-chạy-mcp>:7317/mcpClaude Codeの例:
claude mcp add --transport http pshare-share http://192.168.3.7:7317/mcp4. その他のAI/エージェントフレームワークで使用する
MCPは標準のJSON-RPCプロトコルです。任意のMCPクライアント(LangChain MCPアダプター、カスタムエージェントなど)から接続できます。必要なのは次のとおりです:
stdio:
node dist/index.jsコマンドを起動し、stdin/stdoutを介して通信します。HTTP: MCPのStreamable HTTPトランスポート仕様に従って
POST http://<host>:<port>/mcpを呼び出します。
セキュリティ上の注意
このMCPサーバーは認証を行いません。アクセスできれば(プロセス実行権限があればstdio経由、またはホスト:ポートにアクセスできればHTTP経由で)、誰でも実際のPshareにファイルをアップロード/共有できます。これはPshare自体(アップロード/共有APIに認証がない)と一貫していますが、HTTPトランスポートをLANに公開する場合は注意が必要です。
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables users to upload files and generate tracked, shareable links directly from AI agents like Claude Desktop or Cursor. It supports publishing various file formats including text, PDFs, and images, while providing tools for artifact management and analytics.878MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Microsoft SharePoint documents and folders through natural language, supporting operations like listing, reading, uploading, updating, deleting, and creating Office files.13MIT
- AlicenseNot gradedqualityAmaintenanceEnables sharing and reading encrypted files (text, images, logs) for AI workflows, with automatic 24-hour expiration and host-blind security.1,132155MIT

YAFL MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely transfer files between machines via encrypted, expiring share links, with tools for upload, download, status checks, and link management.MIT
Related MCP Connectors
File uploads for AI agents. Upload, list, and manage files. No signup required.
Upload any file, get a tracked shareable link. DocSend for AI agents.
Upload, organize, search, and transform images, videos, and files with AI-powered tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ntanhprt/Pshare-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server