# onthe.town > onthe.town runs in-person clubs. A club has a page at https://onthe.town/, events people sign up for, members, signup questions, venues, and small groups that guests are split into at each event. AI agents can sign up for a person and create and run clubs for them, through a remote MCP server or the REST API. ## Start here (someone gave you this link) Don't act on your own. First: - Explain in a few sentences what onthe.town is and what you can do for them: set up a club with its own page, create its events and signup questions, find venues, and split the people who sign up into small groups. - Ask what they'd like to do. If they want a club, ask what it's about, which city it's in and how often it meets, plus anything else you'd otherwise guess (the name, public or private). - Before you create an account, a club or an event, or email anyone, tell them exactly what you're about to do (for example the club's name, description and first event) and wait for a clear yes. Once they've said yes, pick the path that matches what you can do: 1. You already have onthe.town tools (account_get, club_create, ...): call account_get, then follow "Running a club" below. 2. You can make HTTP requests (Claude Code, a terminal, a coding agent): use the REST API directly, no setup needed. - Ask the person for the email address their account should use. Never invent one, and tell them onthe.town will email them a link to claim the account. - POST https://onthe.town/api/agents/signup/ (see "Sign up for a person"). Save the api_key from the response. - If that returns 409, the person already has an account. Tell them to connect you instead: in Claude Code, `claude mcp add --transport http onthetown https://onthe.town/mcp` and sign in when asked; or create an API key at https://onthe.town/u/account/security and give it to you. - Create the club, its signup questions and first event with the REST API below, using "Authorization: Bearer ". - Tell the person to open the email from onthe.town and set a password to claim the account, and give them the club's page link (https://onthe.town/). 3. You can only read web pages (for example Claude.ai chat without the onthe.town connector): you can't create the club yet. Tell the person, in one short message, to add onthe.town as a connector: in Claude.ai open Customize → Connectors (https://claude.ai/customize/connectors), click + and choose "Add custom connector", enter the name "onthe.town" and the URL https://onthe.town/mcp, then sign in to onthe.town (or create an account) and allow access. On a Team or Enterprise plan, an owner adds it under Organization settings → Connectors. Ask them to tell you when it's done (some apps need a new chat to see the tools), then use path 1. ## Connect MCP server (Streamable HTTP): https://onthe.town/mcp - Claude.ai: Customize → Connectors (https://claude.ai/customize/connectors) → + → Add custom connector → https://onthe.town/mcp, then sign in to onthe.town and approve. No API key; it runs on the person's Claude subscription. - Claude Code, signing in through the browser: claude mcp add --transport http onthetown https://onthe.town/mcp - Claude Code with an API key: claude mcp add --transport http onthetown https://onthe.town/mcp --header "Authorization: Bearer ott_live_..." The MCP server supports OAuth 2.1 with PKCE (authorization server metadata: https://onthe.town/.well-known/oauth-authorization-server; protected resource metadata: https://onthe.town/.well-known/oauth-protected-resource/mcp) and API keys as Bearer tokens. ## Sign up for a person If the person has no onthe.town account, an agent can create one. The person's email is required. POST https://onthe.town/api/agents/signup/ Content-Type: application/json {"agent_name": "Claude", "operator": "anthropic", "owner_email": "person@example.com"} 201 response: { "api_key": "ott_live_...", // shown once: save it "claimed": false, "claim_email_sent": true, "account": {"email": "person@example.com"}, "mcp_url": "https://onthe.town/mcp", "api_base": "https://onthe.town/api/", "docs": "https://onthe.town/docs", "next_steps": ["..."] } 409 means the email already has an account: ask the person to connect you from Claude.ai or Claude Code (above), or to create an API key at https://onthe.town/u/account/security. onthe.town emails the person a link to claim the account (valid 7 days). Until they open it and set a password, the account can: - have up to 3 clubs, with free events, signup questions, venues and groups but cannot: - invite or email people, add members, create paid events or set membership pricing - appear on Explore or Discover (club pages still work by link) Resend the claim email (at most every 30 minutes): POST https://onthe.town/api/agents/claim-email/ Authorization: Bearer ott_live_... A claim_required error (HTTP 403, code "claim_required") means: ask the person to open the email from onthe.town and set a password. ## Running a club (MCP tools) 1. account_get: the account, whether it's claimed, and its clubs with their club_url. 2. club_create: name, a one- or two-sentence description, city ("Austin, TX"), audience ("Bringing together ..."), public or private. 3. signup_question_add: 2-4 club-wide questions that help match people. 4. event_create: the first event; recurrence (weekly, biweekly, monthly) with recurrence_end_date or custom_dates for a regular meetup; group_size to split guests into groups. 5. Share the club's page_url. invites_send emails up to 5 people (claimed accounts). 6. As people sign up: venues_search (Google Places) then venue_add; groups_form to split guests into groups (run again as signups grow); event_get for guests and their answers. 7. After the event: event_update status=completed; member_email with event_followup. All tools: - Read: account_get, club_get, events_list, event_get, members_list, member_get, analytics_get, inbox_list, venues_search - Write: club_create, club_update, event_create, event_update, signup_question_add, member_add, member_register_for_event, venue_add, group_assign_member, account_resend_claim_email - Destructive: event_cancel, member_remove, signup_question_remove, groups_form (replaces current groups), invites_send, member_email You write all copy (club and event descriptions, questions); the tools only read and save. Only email people the person wants contacted. ## REST API Base URL: https://onthe.town/api/ — send "Authorization: Bearer ott_live_..." on every request. OpenAPI schema: https://onthe.town/openapi.json POST /api/clubs/create-manual/ create a club {name, description, city, audience, website_type, event?} GET /api/clubs/ your clubs GET /api/clubs/{club_url}/dashboard/ stats, upcoming events, activity PATCH /api/clubs/{club_url}/ update a club GET /api/clubs/{club_url}/events/ events POST /api/clubs/{club_url}/events/ create an event {name, date, time, recurrence, recurrence_end_date, cost (cents), group_size, ...} PATCH /api/clubs/{club_url}/events/{id}/ update an event POST /api/clubs/{club_url}/signup-questions/ add a signup question {question, question_type, options, is_required, event?} GET /api/clubs/{club_url}/members/ members POST /api/clubs/{club_url}/members/ add a member {name, email} (claimed accounts) POST /api/clubs/{club_url}/members/{id}/send_email/ send a template email {template, event_id?} (claimed accounts) POST /api/clubs/{club_url}/invites/ invite up to 5 people {emails, message} (claimed accounts) POST /api/clubs/{club_url}/venue-search/ Google Places search {query, city?, count?} POST /api/clubs/{club_url}/events/{id}/venues/ add a venue to an event POST /api/clubs/{club_url}/events/{id}/groups/form_groups/ form groups PATCH /api/clubs/{club_url}/pricing/ membership pricing {subscription_enabled, subscription_price (cents)} (claimed accounts) GET /api/clubs/{club_url}/analytics/?range=30d|90d|all analytics GET /api/agents/me/ the agent profile and claim status ## Website only Deleting a club, payouts, plan and billing, API keys and connected apps, password and account deletion. API keys and MCP can't do these: send the person to https://onthe.town/u/dashboard. ## Limits - 10 new clubs per day per account (3 clubs in total until the account is claimed) - 20 invite requests per day, up to 5 emails each - 100 member emails per day - 200 venue searches per day - Agent signups: 10 per day per IP address ## Links - Docs: https://onthe.town/docs - MCP Server Card: https://onthe.town/mcp/server-card - AI Catalog: https://onthe.town/.well-known/ai-catalog.json