
Pedra
io.github.pedra-ai由 GitHub 帳號 pedra-ai 發布v0.6.1更新於 Oct 24, 2026
AI real-estate photo editing and 360° virtual tours via the Pedra API: staging, renovation, video.
概覽
Pedra 官方 MCP 伺服器,讓助理透過 Pedra API 以 AI 編輯房產照片、產出房源影片,並製作託管的 360° 虛擬看房。
- 可以做什麼
- 編輯照片:增強、校正透視、清空房間、虛擬佈置、翻新、依提示詞編輯、替換天空、移除物件、模糊人臉或車牌
- 算繪房源影片,產生配音腳本與配音音軌,並瀏覽背景音樂與配音庫
- 管理房源與圖片:列出房源、列出照片、建立房源、依 URL 加入圖片或上傳本機 360° 全景照、建立免登入上傳連結
- 建立與維護 360° 虛擬看房:建立、輪詢狀態、列出、重新命名或調整房間順序、追加場景
- 查詢方案與剩餘額度,並送出意見回饋
- 適用情境
- 適合房仲、攝影師與行銷人員,讓助理在對話中直接佈置、修飾或翻新房源照片、製作房源影片,或組出可分享的 360° 虛擬看房。
- 執行需求
- 透過 npx 或全域 npm 安裝在本機以 stdio 執行(需要 Node.js)。需要 Pedra 帳號與 PEDRA_API_KEY 環境變數;沒有金鑰時伺服器會以兩個申請存取的工具啟動,以電子郵件寄送確認連結。需要連線至 Pedra API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Pedra,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Pedra MCP Server
Official Model Context Protocol server for the Pedra API — use Pedra's AI real-estate photo editing (virtual staging, renovation, room emptying, enhancement, sky replacement, object removal/blur, property videos, and hosted 360° virtual tours) directly from Claude, ChatGPT, Cursor, and any other MCP client.
[npm version] [Official MCP registry]
It exposes one tool per API endpoint. Each photo and video tool is a single blocking call that returns the final asset URL(s) — there are no job IDs to poll. Virtual tours build in the background: pedra_create_virtual_tour returns a tourId, and pedra_get_virtual_tour is polled until it's ready.
Quick start
The server reads your Pedra API key (Settings in your Pedra account) from the PEDRA_API_KEY environment variable. No account yet? Start it without a key — see No Pedra account yet?.
The server runs over stdio and is published to npm, so most clients just run it with npx — no global install needed.
Claude Desktop (one-click)
Download the latest pedra-mcp.mcpb from Releases and double-click it (or drag it into Claude Desktop → Settings → Extensions). Claude installs the bundled server and prompts for your PEDRA_API_KEY — no JSON editing.
Claude Desktop (manual)
Or add this to your claude_desktop_config.json (Settings → Developer → Edit Config):
Cursor
In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
Any MCP client
Run the binary directly with the key in the environment:
Or install it:
Smithery
You can also install and configure Pedra automatically via Smithery:
(swap claude for cursor, windsurf, etc.) Smithery prompts for your PEDRA_API_KEY and writes the client config for you.
No Pedra account yet?
Start the server without PEDRA_API_KEY, for example in Claude Code:
Then just ask for something ("stage this photo with Pedra"). Without a key the server adds two tools, and the assistant does the rest:
pedra_request_accesswith your email. Pedra emails you a link (valid 30 minutes): a new account chooses a password there, an existing one clicks Allow. Nothing is created until you click, and you can decline.pedra_check_accessuntil you've confirmed. Once approved, every Pedra tool works for the rest of the session. The key is kept in memory only, never written to disk; the tool result shows it along with how to keep it: add it asPEDRA_API_KEYto the server'senv(e.g.claude mcp add pedra -e PEDRA_API_KEY=<key> -- npx -y @pedra-ai/mcp, or paste it into the extension's settings in Claude Desktop).
Until then, the other tools answer "No API key yet: call pedra_request_access with the user's email". Inbox confirmation is required, disposable email domains are refused, and requests are rate-limited. New accounts start with Pedra's free trial credits.
(In ChatGPT and claude.ai, use Pedra's hosted connector instead: connecting it runs a sign-in where new users can create an account.)
Tools
The nine image-editing tools (enhance through blur) also take propertyId, to save the result into that property's gallery, and name, to save the original photo there under that name in the same call. The result then includes source (imageId, name) of the original. preserveAspectRatio returns the result at the input's exact size.
Most image tools take an imageUrl plus a few optional parameters; see each tool's input schema in your MCP client. The imageUrl (and maskUrl, and each create_video frame) accepts any of:
- a public
https://URL, - a
data:URI, or - an absolute path to a local image file — the server reads it off disk and inlines it as base64 for you, so you can point a tool at a file you just dragged in without hosting it first (
.jpg,.jpeg,.png,.webp,.gif,.bmp,.tif/.tiff,.heic/.heif,.avif; up to 40 MB).
Note: an image pasted into the chat is not a file path, so it can't be forwarded to the tool — drag in a file, or save the paste and pass its path. Photos on the user's phone go through
pedra_create_upload_link: they upload on a no-login page (up to 100 files, 24 h), thenpedra_list_property_imagesreturns their URLs for editing,pedra_create_videoorpedra_create_virtual_tour.
Uploads are limited per day: 30 images on the free plan, 500 on paid plans (reset at midnight UTC), counting every image stored from outside the app (pedra_add_images_to_property, pedra_add_local_panoramas, URL scenes in tours, upload-link files); over it the call fails with HTTP 429, upload_limit and nothing is stored. Upload links: 5 a day free, 50 paid (upload_link_limit).
Example prompts once connected:
"Use Pedra to virtually stage https://example.com/empty-living-room.jpg as a minimalist living room."
"Virtually stage /Users/me/Desktop/empty-living-room.jpg as a minimalist living room."
"How many Pedra credits do I have left?"
Virtual tours
POST your 360° photos, get back a hosted, linked, shareable virtual tour: AI names the rooms and places the door-to-door navigation points. The tour tools have the same names, descriptions and input schemas as Pedra's hosted MCP server (https://app.pedra.ai/mcp), so an agent behaves the same on either.
A typical flow:
- Get the 360° photos into a property.
- Files on this computer →
pedra_add_local_panoramaswith the paths in walking order. This tool exists only in this local server: it reads the files off disk and sends them base64-encoded, 10 per call under the API's 50 MB request limit. Files over ~33 MB can't go this way. - Photos on someone's phone (or big files) →
pedra_create_upload_linkwithtype: "360", and hand over theuploadUrl(no login, valid 24 h). - Photos already online → skip this step and pass the URLs as
scenes.
- Files on this computer →
- Build it:
pedra_create_virtual_tourwith thepropertyId(uses every 360° photo in upload order) or withscenes. It returns atourIdstraight away. - Wait: poll
pedra_get_virtual_touruntilstatusis"ready"(about 10 s per room) — then sharetourUrlor embedembedCode. A"failed"build says why and costs nothing. - Adjust with
pedra_update_virtual_tour(free, instant) or append rooms withpedra_add_virtual_tour_scenes.
Linking costs max(3, ceil(rooms/3)) credits for "sequential" (default; each room to the next), 5–160 for "smart" (AI works out which rooms connect), and nothing for "none". Deleting a tour is API-only (not exposed as a tool).
"Make a Pedra virtual tour of Calle Mayor 12 from /Users/me/360/entrance.jpg, /Users/me/360/living.jpg and /Users/me/360/kitchen.jpg, in that order, and give me the link."
How it works
This server is a thin wrapper over @pedra-ai/sdk, which encodes the API's contract details:
- Synchronous by design (except virtual tours). Every photo and video endpoint blocks and returns the final URL(s) in the response body. Even
pedra_create_videopolls server-side and returns the finishedvideoUrlinline (it can take up to ~10 minutes; the API keeps the connection alive with a heartbeat). - Errors are tool errors. The API's 4xx responses (insufficient credits, bad image, …) come back as MCP tool errors with a readable message, not crashes.
Privacy Policy
This server sends the image/video URLs and parameters you pass to the Pedra API to perform the requested edit, authenticated with your PEDRA_API_KEY. Without a key, pedra_request_access sends the email address you give it to Pedra so Pedra can email you a confirmation link; a key obtained that way is held in memory for the session only. It stores no data itself. Data collection, usage, storage, retention, third-party sharing, and contact information are covered by Pedra's privacy policy: https://pedra.ai/privacy.
License
MIT © Pedra
來源:README.md,提交 79bbe8b
工具
0版本歷史
5- v0.6.1最新Oct 16, 2026
- v0.6.0Oct 5, 2026
- v0.5.1Oct 2, 2026
- v0.5.0Oct 1, 2026
- v0.4.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分