Technical reference for the ubi connector, an MCP server that lets an AI assistant read and, if the user allows it, change their ubi data. To connect an assistant, see Use ubi with your AI assistant.
Setup
- Endpoint:
https://api.ubiplaces.com/functions/v1/mcp(MCP streamable HTTP, JSON responses, stateless; production) - Authentication: OAuth 2.1 with PKCE (S256). Discovery through protected resource metadata (
WWW-Authenticateon a401) and authorization server metadata. Clients register with dynamic client registration or a client ID metadata document. No client secret and no API key. - Grants:
authorization_codeandrefresh_token. Access tokens are short-lived; refresh them with the refresh token. A connection that isn't used for 30 days has to be connected again. - Account: a free ubi account, created in the ubi app for iPhone or Android. The user signs in on connect.ubiplaces.com the same way as in the app.
Permissions
ubi.read: every Read tool below.ubi.write: every Write tool below. On the consent page the user can untick Make changes for you to grant read-only access.
A Write tool called with a read-only grant returns HTTP 403 with error="insufficient_scope" in WWW-Authenticate, so the client can ask the user for more access. Every tool sees only what the user can see in the ubi app. Users can see and disconnect their connected assistants at connect.ubiplaces.com; a disconnected grant stops working at once.
Classifications
- Read: retrieves information, changes nothing.
- Write: changes only the user's own private data (saved pins, recommendation feedback) or removes a pin from a collection. Nothing is deleted.
- Sensitive write: creates or changes content other people can see: pins, collections and their contents. Followers, or everyone for a public profile, may see the result at once, and it shows in their feeds. Should be approved every time.
Each tool also carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and a title. No tool sends messages, follows people, uploads photos or videos, takes payments, or deletes pins, collections or accounts.
Read tools
| Tool | What it returns | Inputs |
|---|---|---|
get_me | The user's own profile: id, user name, full name, bio, whether the profile is public, default pin visibility | none |
search_pins | Pins by the user and people they follow whose text, label or place name matches | query, limit |
search_collections | Collections by the user and people they follow, by name or description | query, limit |
search_people | ubi users by user name or full name, public profile fields only | query, limit |
search_places | Places already in ubi by name, nearest first when a point is given | query, latitude, longitude, radius_km, limit |
pins_near | Pins within a radius of a point, nearest first, by the user and people they follow, or everyone the user may see | latitude, longitude, radius_km, who, limit |
get_pin | One pin with its place, creator, rating, visibility, links and media counts | pin_id |
get_pin_media | A pin's photos as images, and videos or large photos as links that expire after 15 minutes | pin_id, max_photos |
get_place | A place's details, opening hours, vibe tags, and pins at it by the user and people they follow | place_id |
list_user_pins | A user's pins, newest first (empty for a private profile the user may not view) | user, limit |
list_collections | A user's collections with visible pin counts | user, name_contains, limit |
get_collection | A collection and the pins in it the user can see | collection_id, limit |
list_saved_pins | The user's saved pins | limit |
get_profile | A user's profile, counts, and connection to the signed-in user | user |
list_following | People a user follows | user, limit |
list_followers | People who follow a user | user, limit |
get_feed | Recent activity from the user and people they follow, newest first, with a cursor for older events | limit, cursor |
recommend_pins | Personalised pin recommendations for an area or overall, each with a reason | latitude, longitude, radius_km |
recommend_places | Recommended places, each with a reason | latitude, longitude, radius_km |
recommend_collections | Recommended collections by other people, each with a reason | latitude, longitude, radius_km, limit |
recommend_people | People to follow, with a reason and mutual connections | latitude, longitude, radius_km, limit |
get_taste_profile | What ubi has learned the user likes: place categories, vibe tags and cities | none |
find_google_place | Up to 5 Google Maps candidates for a place not yet in ubi, each with an address and a google_place_id for create_pin. Calls Google; changes nothing | query, latitude, longitude |
Write tools
| Tool | Class | What it does and its side effects | Inputs |
|---|---|---|---|
create_pin | Sensitive write | Pins a place for the user. Visible at once to the chosen audience (only me, followers or everyone) and shown in followers' feeds unless "only me". If the user already has a pin at the place, returns it and creates nothing | place_id or google_place_id, description, label, rating, have_been_here, visibility |
update_pin | Sensitive write | Changes the user's own pin. Only the fields given change. A visibility change takes effect at once and can show the pin to more people | pin_id, description, label, rating, have_been_here, visibility |
create_collection | Sensitive write | Creates a collection, visible to the user's followers (everyone for a public profile). If one with the same name exists, returns it | name, description |
add_to_collection | Sensitive write | Adds a pin the user can see to one of the user's collections, where the collection's viewers can see it. Adding twice is harmless | collection_id, pin_id |
remove_from_collection | Write | Takes a pin out of one of the user's collections. The pin itself is not deleted | collection_id, pin_id |
save_pin | Write | Saves (bookmarks) a pin for the user. Private to the user. Saving twice is harmless | pin_id |
unsave_pin | Write | Removes a pin from the user's saved pins. The pin is not changed | pin_id |
dismiss_recommendation | Write | Hides a pin, place, collection or person from the user's recommendations (a person for 90 days). Private to the user | kind, subject_id |
Every write returns the resulting object, so the outcome is confirmed, not assumed. create_pin and create_collection return an existing item instead of creating a duplicate, and the other writes are idempotent, so a retry after an uncertain result is safe.
Errors and status
- Not connected or expired: HTTP
401withWWW-Authenticate. Refresh the token or sign in again. - Missing permission: HTTP
403,insufficient_scope, for a Write tool on a read-only grant. - Tool errors: a tool result with
isError: trueand a message saying what went wrong, for example an unknown id, a pin the user can't see, or an invalid value. - Rate limits: a tool result with
isError: truesaying how long to wait (a minute or an hour).
Rate limits
- Per user: 60 calls a minute and 2,000 a day.
- Writes, per user: 30 a minute and 300 a day.
find_google_place: 50 a day per user and 1,000 a day across all users.
Data and privacy
The connector reads and writes the user's ubi data only to answer their requests. find_google_place sends the search words, and the area if given, to Google. ubi logs which tool was called, when, whether it worked and the type of any error, not the request, the results or the error message, and deletes those log entries after about 90 days. See how ubi handles connected assistants.
Contact
Support and security: support@ubiplaces.com.
Back to Use ubi with your AI assistant