Pedra

v0.8.0
io.github.pedra-ai/pedra-mcp Checked 5 hours ago Published 11 days ago

AI real-estate photo editing and 360° virtual tours via the Pedra API: staging, renovation, video.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pedra_request_access Get a Pedra account

This Pedra server has no API key yet. Use this when the user wants to use Pedra (photo editing, virtual staging, videos, 360° tours): ask for their email, then call this. Pedra emails them a link to confirm: a new user creates their account there (chooses a password), an existing user clicks Allow. Nothing is created until they click. Tell the user to check their inbox, then call pedra_check_access with the requestId.

ParameterTypeDescription
email *stringThe user's email address (ask them for it; don't guess).
agentNamestringShown to the user in the email, e.g. "Claude Code". Defaults to this MCP client's name.

pedra_check_access Check Pedra account access

Check whether the user confirmed the access request from pedra_request_access. "pending": they haven't clicked yet, check again in a few seconds. "approved": every Pedra tool works from now on in this session; show the user the result's message so they can keep their API key. "denied" or "expired": ask before requesting again.

ParameterTypeDescription
requestId *stringThe requestId from pedra_request_access.

pedra_enhance Enhance image

Enhance a real-estate photo: improve lighting, color, and sharpness. Returns the enhanced image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
preserveOriginalFramingbooleanPreserve the original framing/aspect ratio/resolution exactly (for verification verticals where the output must legally represent the captured photo). Defaults to false.
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_enhance_and_correct_perspective Enhance + correct perspective

Enhance a photo and correct vertical/horizontal perspective (straighten walls and lines). Returns the corrected image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
preserveOriginalFramingbooleanPreserve the original framing/aspect ratio/resolution exactly (for verification verticals where the output must legally represent the captured photo). Defaults to false.
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_correct_perspective Correct perspective

Straighten vertical lines in a photo shot with a tilted camera, without enhancing light or color. Use pedra_enhance_and_correct_perspective to do both. Returns the corrected image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_make_hd Make HD

Upscale a photo with AI to a sharper, higher-resolution version. Use it on small or blurry listing photos. Returns the HD image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_empty_room Empty room

Remove all furniture and objects from a room, leaving an empty space. Returns the emptied image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_furnish Furnish / virtually stage

Virtually stage (furnish) a room with AI-generated furniture. Returns the staged image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…
roomTypestringe.g. "Living room", "Bedroom", "Kitchen". Auto-detected if omitted.
stylestringe.g. "Minimalist", "Scandinavian", "Modern".

pedra_furnish_same_room Stage one room from several angles

Virtually stage 2 to 10 photos of the SAME room, taken from different angles, so every photo gets the same furniture in the same places. Stages the first photo in the given style, then furnishes every other angle from it (or from referenceImageUrl if the room is already staged). Use this instead of calling pedra_furnish per photo whenever the user has several shots of one room: pedra_furnish would give each photo different furniture. Put the widest shot first. Costs 1 credit for the first photo and 2 per extra angle. Runs in the background: returns a jobId right away; call pedra_get_furnish_sa…

ParameterTypeDescription
imageUrls *array2 to 10 photos of one room, widest shot first: public https:// URLs, data: URIs, or absolute paths to local image files on this computer. One room per call: stage the living room and the bedroom as se…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…
referenceImageUrlstringOptional public URL of a photo of this room that is already staged. Every photo in imageUrls is then furnished to match it (2 credits each) and style is ignored.
roomTypestringe.g. "Living room", "Bedroom". Auto-detected if omitted.
stylestringStyle for the first photo, e.g. "Minimalist", "Scandinavian". Required unless referenceImageUrl is set.

pedra_get_furnish_same_room Check multi-angle staging

Check a job started with pedra_furnish_same_room. Returns status "processing", "ready", "partial" (some photos failed and weren't charged) or "failed", plus one output per photo in the order sent, each with its own status and, once ready, its url. Never spends credits.

ParameterTypeDescription
jobId *stringId returned by pedra_furnish_same_room.

pedra_renovation Renovate space

Renovate a space (walls, floors, finishes), optionally furnished. Returns the renovated image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
furnishWhether the renovated room should be furnished (true → with furniture, false → empty).
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…
roomTypestringRoom type. Auto-detected if omitted.
stylestringRenovation style.

pedra_edit_via_prompt Edit via prompt

Edit an image from a natural-language instruction (e.g. "paint the walls sage green"). Returns the edited image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
prompt *stringNatural-language description of the edit to apply.
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_sky_blue Replace sky

Replace a dull or overcast sky with a clear blue one. Returns the image URL with the new sky. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…
skyStylestringOptional named sky style.

pedra_remove_object Remove object

Remove an object from an image using a mask. Returns the cleaned image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
maskUrl *stringMask image marking the region to remove: a public https:// URL, a data: URI, or a local file path.
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_blur Blur objects

Blur objects in an image (e.g. faces, license plates) for privacy. Returns the blurred image URL. Pass `propertyId` to save the result into that property's gallery instead of only returning a URL.

ParameterTypeDescription
imageUrl *stringSource image: a public https:// URL, a data: URI, or an absolute path to a local image file on this computer (the file is read and inlined automatically). If the photo is on the user's device and can'…
objectsToBlur *arrayLabels/regions to blur, e.g. ["faces", "license plates"].
namestringOptional name for the original photo (e.g. its file name), up to 200 characters. Only used with propertyId: if the photo isn't in that property yet, it's saved there under this name in the same call a…
preserveAspectRatiobooleanBy default the output comes back at whatever size the AI model produces, which may not match the input's aspect ratio or resolution. Set to true to get the result at the exact width and height of the…
propertyIdstringOptional id of the Pedra property (from pedra_list_properties) this photo belongs to. When set, the result is saved into that property's gallery — visible and editable from the app — instead of on…

pedra_create_video Create property video

Create a property video from a list of images. Blocks server-side until the video is rendered (up to ~10 min) and returns the finished video URL inline.

ParameterTypeDescription
images *arrayOrdered list of images that make up the video.
brandingobject
endingSubtitlestring
endingTitlestring
isVerticalbooleanForce a vertical (9:16) video.
musicobject
propertyCharacteristicsarray
voiceobject

pedra_update_video Edit existing video

Edit an existing video (by videoId) without re-rendering unchanged clips — only new/changed photos re-animate and cost credits; reordering, music, voice, branding and text re-stitch for free. Omit `images` to change only audio/text/branding while keeping the current timeline. Omit `music`/`voice`/`branding`/ending text to leave them unchanged. Blocks until rendered and returns the new video URL.

ParameterTypeDescription
videoId *stringId of the video to edit (from pedra_create_video).
brandingobject
endingSubtitlestring
endingTitlestring
imagesarrayFull ordered image list to rebuild the timeline; matching photo+effect clips are reused. Omit to edit only audio/text and keep the current timeline.
isVerticalbooleanForce a vertical (9:16) video (only when images are sent).
musicobject
propertyCharacteristicsarray
voiceobject

pedra_generate_voice_script Generate voiceover script

Write a short voiceover script from property photos (and optional facts). GPT-4o vision reads the images so the script reflects what's actually shown. Returns the script text — pass it to pedra_generate_voice.

ParameterTypeDescription
imagesarrayPhotos to base the script on (URLs or { imageUrl }).
languagestringScript language, e.g. "English", "Español". Defaults to English.
propertyCharacteristicsarray

pedra_generate_voice Generate voiceover audio

Render a voiceover from a script via text-to-speech. Returns an audioId — pass it to pedra_create_video / pedra_update_video as voice.audioId to attach the narration (with synced subtitles).

ParameterTypeDescription
text *stringThe script to narrate (max 1000 characters).
languagestringVoice language, e.g. "English", "Español". Defaults to English.
voiceIdstringWhich voice narrates. Call pedra_music_library for the voices offered per language — a voice is only valid for the language it is listed under. Defaults to that language's first voice.

pedra_music_library List music tracks

List the background-music catalog: valid `music.track` values (genre keys), plus the voice languages and the narration voices offered for each of them. Read-only.

pedra_list_properties List properties

List the user's Pedra properties (id, name, photo count, and an appUrl to open each in Pedra). Use this to find photos already in the account — e.g. to build a video from a listing's photos.

pedra_list_property_images List property photos

List the photos in a Pedra property as img.pedra.ai URLs, ready to pass straight to pedra_create_video or the image-editing tools. Get the propertyId from pedra_list_properties. Pass type "360" to list its 360° photos instead (their imageIds are the scenes of a virtual tour).

ParameterTypeDescription
propertyId *stringThe property's id (from pedra_list_properties).
typestringWhich images to list: regular photos ("photo", the default) or 360° photos ("360").

pedra_create_property Create property

Create a new Pedra property. Returns its propertyId and an appUrl. To add photos that are on the user's device, pedra_create_upload_link is simpler (no login); or give the user the appUrl to open the property in Pedra and drop their photos in, then use pedra_list_property_images.

ParameterTypeDescription
namestringProperty name, e.g. the listing address.

pedra_add_images_to_property Add photos to property

Add photos to a property by URL (the server fetches each one, so any public https image URL or small data: URI works). Returns the stored img.pedra.ai URLs to use with the editing, video and tour tools. For photos on the user's device, use pedra_create_upload_link instead. Pass type "360" for 360° photos (checked to be 2:1 equirectangular), which can then become a virtual tour. (With this local server, 360° photo files on this computer can go through pedra_add_local_panoramas instead.)

ParameterTypeDescription
imageUrls *arrayImage URLs to fetch and add to the property: up to 20 photos, or up to 10 when type is "360".
propertyId *stringTarget property id (from pedra_list_properties or pedra_create_property).
namesarrayOptional names, one per image in the same order as imageUrls (e.g. the original file names), up to 200 characters each. Returned by pedra_list_property_images and as source.name when the photo is edit…
typestringWhat the images are: regular photos ("photo", the default) or 360° photos ("360").

pedra_add_local_panoramas Add local 360° photos to property

LOCAL-ONLY TOOL (this Pedra MCP server runs on the user's own computer, so it can read files from its disk). Upload 360° photo files (2:1 equirectangular JPEG, PNG or WebP) from absolute local paths into a property, in the order given — that order becomes the walking order when you then call pedra_create_virtual_tour with just the propertyId. Files are sent in batches (10 per call, under the 50 MB request limit); a file over ~33 MB can't be sent this way — use pedra_create_upload_link for those. Prefer this over pedra_create_upload_link whenever the 360° photos are files on this computer…

ParameterTypeDescription
paths *arrayAbsolute paths to 360° photo files on this computer, in walking order (file:// URLs and ~ are accepted).
propertyId *stringTarget property id (from pedra_list_properties or pedra_create_property).

pedra_create_virtual_tour Create virtual tour

Build a hosted 360° virtual tour: the rooms are named and linked with navigation points by AI, and you get a shareable link and embed code. Pass the 360° photos as scenes (URLs, or imageIds of 360° photos already in the property) in the order someone would walk through the home, or just a propertyId to use all its 360° photos. Linking: "sequential" (default) links each room to the next and costs max(3, ceil(rooms/3)) credits; "smart" lets AI work out which rooms connect (slower, 5-160 credits by room count); "none" is free. Returns a tourId immediately — the build takes about 10 seconds…

ParameterTypeDescription
languagestringLanguage of the tour page and of AI room names. Defaults to "en".
linkingstringHow rooms get connected. Defaults to "sequential".
namestringTour title, e.g. the listing address.
propertyIdstringProperty the tour belongs to. Omit to create a new property.
scenesarrayThe rooms in walking order. Omit to use every 360° photo in propertyId.

pedra_get_virtual_tour Check virtual tour

Get a virtual tour: status ("processing", "ready" or "failed", with the reason), the shareable tourUrl, an embedCode iframe for a website, and its scenes and navigation links. Poll this after pedra_create_virtual_tour or pedra_add_virtual_tour_scenes. Read-only.

ParameterTypeDescription
tourId *stringId from pedra_create_virtual_tour or pedra_list_virtual_tours.

pedra_list_virtual_tours List virtual tours

List the account's virtual tours (newest first) with status, share link and room count. Optionally only one property's. Read-only.

ParameterTypeDescription
propertyIdstringOnly this property's tour.

pedra_update_virtual_tour Edit virtual tour

Change a finished virtual tour in place: rename it or its rooms, reorder rooms (the first one is where the tour opens), remove rooms, replace its navigation links, or change how the navigation points look. Free and instant. The tour's public link shows the change right away. Get sceneIds from pedra_get_virtual_tour.

ParameterTypeDescription
tourId *stringThe tour to change.
languagestringLanguage of the tour page and of AI room names. Defaults to "en".
linksarrayReplaces ALL navigation links. Each is one direction; add the return link separately.
namestringNew tour title.
navigationSizestringSize of the navigation points.
navigationStylestringLook of the navigation points.
removeScenesarraysceneIds to take out of the tour (the photos stay in the property). Their links go too.
sceneNamesobjectNew room names, as { sceneId: "Kitchen" }.
sceneOrderarrayEvery sceneId of the tour in the new order. The first one opens the tour.
showLabelsbooleanAlways show room names next to the navigation points.

pedra_add_virtual_tour_scenes Add rooms to virtual tour

Add rooms to the end of an existing virtual tour. With "sequential" linking (default) only the new stretch is linked: the last existing room to the first new one, then each new room to the next. That costs max(3, ceil(new rooms/3)) credits; "none" is free. The tour stays live while this runs; poll pedra_get_virtual_tour until status is "ready".

ParameterTypeDescription
scenes *arrayThe new rooms, in walking order.
tourId *stringThe tour to extend.
linkingstringDefaults to "sequential".

pedra_credits Get credits

Read the account's plan and remaining credits. Never deducts credits.

pedra_feedback Submit feedback

Submit thumbs up/down feedback on a generated image, with an optional credit-back on a thumbs-down (subject to the API's eligibility rules).

ParameterTypeDescription
commentstring
creditBackbooleanRequest a credit refund (only honored on a thumbs-down).
imageIdstringExplicit image id. One of imageUrl/imageId is required.
imageUrlstringThe generated image URL to vote on (id is parsed from it).
votestringThumbs up/down. An empty string clears a previous vote.