Castopia MCP server
Connect your own assistant to your Castopia business. Paste one address, sign in to Castopia, pick the business, and ask it to change your site and its code, run your ads, make posts, change your account or hand a job to Eve.
Connect your assistant
Claude (claude.ai, desktop and mobile)
- In Claude, open Settings, then Connectors.
- Choose Add custom connector. Name it Castopia and paste https://castopia.ai/api/mcp as the URL. Choose Add.
- Choose Connect next to Castopia. Castopia opens: sign in, pick your business and tap Allow.
- In a chat, turn Castopia on from the tools menu and ask: "What needs me in Castopia?"
Custom connectors are on Claude's paid plans. On a Team or Enterprise plan, an owner adds Castopia once in Admin settings, Connectors, and then each person connects it.
ChatGPT
- In ChatGPT, open Settings, then Apps (Connectors on some plans), then Advanced settings, and turn on Developer mode.
- Choose Create. Name it Castopia, paste https://castopia.ai/api/mcp as the MCP server URL, and pick OAuth for authentication.
- Castopia opens: sign in, pick your business and tap Allow.
- In a chat, add Castopia from the tools menu and ask for what you need.
Custom MCP apps need developer mode, which ChatGPT offers on its paid plans. On a workspace plan an admin may need to allow it.
Claude Code
- Run the command below in a terminal.
- Start Claude Code, type /mcp, pick castopia and choose Authenticate. Castopia opens in your browser: sign in, pick your business, tap Allow.
- Or skip the browser: in Castopia on the web, open Settings, API keys, and copy the line under Connect your Claude. It carries a private key for one business.
Terminal
Cursor
Add to Cursor- Click Add to Cursor, or paste the config below into ~/.cursor/mcp.json.
- In Cursor's MCP settings, choose Connect next to castopia. Castopia opens: sign in, pick your business and tap Allow.
~/.cursor/mcp.json
{
"mcpServers": {
"castopia": {
"url": "https://castopia.ai/api/mcp"
}
}
}VS Code (GitHub Copilot)
Add to VS Code- Click Add to VS Code, or paste the config below into .vscode/mcp.json.
- Start the castopia server when VS Code asks. Castopia opens: sign in, pick your business and tap Allow.
.vscode/mcp.json
{
"servers": {
"castopia": {
"type": "http",
"url": "https://castopia.ai/api/mcp"
}
}
}Any other MCP client
- Give it the address https://castopia.ai/api/mcp (Streamable HTTP).
- A client that supports MCP sign-in (OAuth) finds Castopia's sign-in on its own: you sign in, pick your business and tap Allow.
- A client that can only send a header: copy a private key with the button below and send it as Authorization: Bearer <key>.
With a private key
{
"mcpServers": {
"castopia": {
"type": "http",
"url": "https://castopia.ai/api/mcp",
"headers": {
"Authorization": "Bearer sk_live_…"
}
}
}
}What your assistant can do
51 tools. Each one says whether it reads, changes, posts in public or spends, and your assistant asks you before anything is posted or any money is spent.
Your business
castopia_get_businessReadsStart here.
castopia_teachChangesAdd a fact to what Castopia knows about this business, so Eve, the site and every ad can use it from now on: a new service, a price, the story behind the business, who the best customers are, a rule ("never mention discounts").
castopia_add_funds_linkChangesA secure checkout link the owner opens to add money to the business's Castopia wallet, which pays for ad spend and for pictures and videos.
Website
castopia_get_siteReadsThe business's Castopia site: its address, whether it is on the web, listed on Google and where the ads land, its look, pages, 30-day visits and enquiries, its own domain, and where the last asked-for change stands (`lastChange`: queued, running, done or failed, with a note).
castopia_create_sitePosts in publicMake this business its Castopia marketing site from what Castopia already knows about it, and put it on the web at a castopia.ai address.
castopia_change_siteChangesChange the business's site by saying what should change, in the owner's own words: what it says (hours, services, prices, phone, a new fact, a question and its answer, the button), how it looks (another look, darker, lighter, bolder, calmer, their colour) or what it shows (hide or move a section).
castopia_list_site_filesReadsFor a site Castopia built as code (castopia_get_site says `custom: true`): every file of it, with sizes, and the rules for editing it.
castopia_read_site_fileReadsOne text file of the site, exactly as it is: "index.html", "lessons/index.html", "styles.css".
castopia_edit_site_filesChangesMake one change to the site by exact text replacements, all sent in ONE call.
castopia_undo_site_changeChangesTake back the last change made to the site, whoever made it.
castopia_add_site_pictureChangesMake a picture ready for the site from a web address: one from castopia_list_library, the owner's own website or social page, or a file you uploaded to an address from castopia_picture_upload_url.
castopia_settle_site_changePosts in publicThe change waiting as a preview (from castopia_edit_site_files, or one asked on castopia.ai/site): `publish` makes it the live site at once; `discard` drops it and the live site stays as it is.
castopia_site_versionsReadsFor a site Castopia built as code: every version, newest first, with what changed in each, which one is live, which waits as a preview, and an address that opens each one exactly as it was.
castopia_restore_site_versionPosts in publicServe version `n` from castopia_site_versions as the live site again: going back several changes at once, or forward to one taken back.
castopia_publish_sitePosts in publicThe site's switches.
castopia_connect_domainPosts in publicServe the site on a domain the owner already owns (joesroofing.com).
castopia_buy_domainPosts in publicBuy a new address for the site, paid from the business's Castopia wallet, registered in the owner's name and live without any DNS work.
castopia_site_resultsReadsWhat the site is doing for the business, from Google's own numbers: `foundOnGoogle` (what people searched that showed the site, how often they visited, which searches are worth going after), `visitors` (people, visits, where they came from, which pages) and `googleListing` (the business's Google Maps listing: rating, where it stands among places like it nearby, what is wrong with it).
Eve and the activity log
castopia_ask_eveChangesHand a question or a job to Eve, Castopia's marketing agent for this business.
castopia_get_eve_replyReadsWhere a conversation with Eve stands: her reply, still working, waiting on the owner's yes, or failed.
castopia_needs_youReadsEverything stopped until the owner decides or fixes something: Eve asking to launch or spend, a move she proposes after reviewing a campaign, an ad a network rejected, a social account that needs signing in again, a campaign paused because the balance ran out.
castopia_answer_eveSpendsAnswer something Eve is waiting on: an `approvalId` from castopia_ask_eve, or an item id from castopia_needs_you marked `answerWith: castopia_answer_eve`.
castopia_get_activityReadsThe business's marketing log, newest first: what Eve noticed, what she did on her own, what she asked and what the owner answered, what launched, paused or was rejected.
castopia_set_eveSpendsChange how Eve, Castopia's marketing agent, works for this business, and the most she may spend in a month.
Ad campaigns
castopia_list_campaignsReadsEvery ad campaign this business has: name, status (planned = made but never launched, active, paused, completed), daily budget, and what it has spent and brought so far (times seen, clicks, results).
castopia_get_campaignReadsOne campaign in full: its ad, budget, where it is running, results overall and per network, anything a network flagged or rejected, and Eve's latest review of it (her read and the move she proposes, if any).
castopia_draft_campaignSpendsMake a campaign that is ready to launch but not running (status planned).
castopia_launch_campaignSpendsStart a planned campaign on its ad networks.
castopia_set_campaign_statusSpendsPause a running campaign (spend stops; safe to do at once when the owner asks, or when it is plainly losing money and they asked you to watch it) or resume a paused one (spend starts again: the owner's call).
castopia_set_campaign_budgetSpendsSet what a campaign may spend per day, in dollars.
Posts, pictures and videos
castopia_list_libraryReadsWhat Castopia has made or been given for this business: image posts and ads (FLYER, IMAGE), videos (VIDEO, CLIP) and writing (TEXT), newest first, each with its status (COMPLETE = ready, PUBLISHED = already posted, STARTED/PROCESSING = being made) and its file.
castopia_get_contentReadsOne picture, post or video from the library: whether it is finished, its file, its caption.
castopia_get_today_ideaReadsThe one thing Castopia suggests this business post today, chosen from its trade, its town and what is getting attention this week, with why.
castopia_make_imageSpendsHave Castopia design a finished image for this business, in its own look with its real photos and logo: a post or an ad.
castopia_make_video_adSpendsHave Castopia make a finished short video ad for this business: written, filmed with AI, voiced and captioned.
castopia_publish_postPosts in publicPost a finished library item to the business's own social accounts now, in public.
castopia_take_down_postPosts in publicTake something Castopia posted off the social networks it went to.
Video kit
castopia_picture_upload_urlChangesFor a picture on the owner's computer (when you can run commands, as in Claude Code or Cursor): a one-hour address to upload it to with curl -X PUT -H 'Content-Type: <contentType>' --data-binary @<file> '<uploadUrl>'.
castopia_write_video_scriptChangesHave Castopia write a short video script (TikTok, Reels, Shorts) for this business from a brief: the hook, each shot with its spoken line and on-screen text, and the caption, in the brand's own voice.
castopia_get_video_scriptReadsOne video script from castopia_write_video_script (or the app): whether it is written yet, its hook, each shot with what is said and shown, the caption and hashtags.
castopia_update_businessChangesChange one part of the business's profile, which Eve, the site, every post and every ad are written from.
castopia_get_ad_targetingReadsWhat every new campaign of this business is aimed at, as Eve worked it out and the owner changed it: the goal (calls, forms, visits, sales) and the page it happens on, what one customer is worth, the area, who buys (kind, ages, gender, one line), the Google searches the ads bid on, the searches they never show for, interests, the sites Display ads run on and subreddits.
castopia_change_ad_targetingChangesChange one or more answers of the ad targeting (read castopia_get_ad_targeting first and copy its shapes).
castopia_list_printReadsEverything printed for this business: each piece (sticker, flyer, counter card, door hanger …) with its picture, print-ready PDF, the short address its QR code opens and how many times it was scanned; which sizes can be shipped right now; and the orders already shipped with their status and tracking link.
castopia_make_printSpendsHave Castopia design a printed piece with a QR code that is checked to scan and counts scans: format sticker (2.5×4 in), sticker_wide (3.5×2), tag (3.5×2 hang tag), counter_card (4×6), flyer_half (5.5×8.5), flyer_letter (8.5×11) or door_hanger (4.25×11).
castopia_quote_print_shippingReadsWhat it costs to have a finished piece printed and mailed to a US address, and when it arrives.
castopia_ship_printSpendsOrder a finished piece printed and mailed to a US address.
castopia_set_print_rulesChangesSave the business's own brief for printed pieces: its look, the only numbers it allows (e.g.
castopia_get_briefReadsRead this business from Castopia as a video job: job.json for the Castopia video kit (name, what it sells, real facts, reviews, approved offer, call to action, audience, the word the hook must say, brand colours) plus the brand's photos and logo to download into the job's input/ folder.
castopia_upload_urlChangesGet a one-hour upload address for one finished file of a video.
castopia_save_videoChangesAfter final.mp4 (and cover.jpg) are uploaded, save the video to this business's Castopia library so it can be posted or promoted.
How sign-in works
- Server address
- https://castopia.ai/api/mcp
- Transport
- Streamable HTTP, stateless. Each POST is answered with JSON. Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05.
- Protected resource metadata
- https://castopia.ai/.well-known/oauth-protected-resource/api/mcp (RFC 9728). An unsigned request gets a 401 whose WWW-Authenticate header points there.
- Authorization server
- https://castopia.ai itself. Metadata at https://castopia.ai/.well-known/oauth-authorization-server (RFC 8414).
- Client registration
- Dynamic client registration at https://castopia.ai/api/mcp/oauth/register (RFC 7591), or a Client ID Metadata Document URL as the client_id.
- Flow
- OAuth 2.1 authorization code with PKCE (S256 only). The owner signs in to Castopia, picks one business and taps Allow.
- Tokens
- The access token works for 30 days on the business the owner picked. The refresh token swaps it for a new one. Send it as Authorization: Bearer.
- Disconnecting
- Each connection is listed under the app's name in Castopia, Settings, API keys. Deleting it there stops that app at once.
- Server card
- https://castopia.ai/.well-known/mcp/server-card.json lists the server, its sign-in and its tools.
- Directory edition
- https://castopia.ai/api/mcp/directory is what Claude's and ChatGPT's directories list: the same server and sign-in without making pictures and videos, adding money, print orders, launching campaigns or raising budgets, which the owner does in the Castopia app. Add https://castopia.ai/api/mcp by hand for everything.
- Rate limit
- 90 tool calls a minute per business.
Limits
- A connection works on one business. Connect again to use another.
- The Castopia MCP server cannot connect social or ad accounts, buy a domain or pay. Those stay in the Castopia app.
- Editing a site's files works on sites Castopia built as code. Other Castopia sites change through castopia_change_site, in plain words.
- Talking to Eve needs Eve switched on for the business.
Questions
Does Castopia have an MCP server?
Yes. Castopia's MCP server is at https://castopia.ai/api/mcp. Add it to Claude, ChatGPT, Claude Code, Cursor, VS Code or any MCP client, sign in to Castopia and pick your business. Your assistant can then change and publish your website, run your ad campaigns, make and post pictures and videos, and hand marketing jobs to Eve, Castopia's marketing agent.
How do I connect Castopia to Claude?
In Claude, open Settings, Connectors, choose Add custom connector and paste https://castopia.ai/api/mcp. Choose Connect, sign in to Castopia, pick your business and tap Allow.
How do I connect Castopia to ChatGPT?
In ChatGPT, turn on Developer mode under Settings, Apps, Advanced settings. Choose Create, paste https://castopia.ai/api/mcp as the MCP server URL and pick OAuth. Sign in to Castopia, pick your business and tap Allow.
Which business does my assistant work on?
The one you pick when you tap Allow. Each connection works on one business. To use a second business, connect again and pick it.
Can my assistant spend money or post without asking?
Castopia marks every tool as reading, changing, posting in public or spending, and tells the assistant to ask you before it posts or spends. Launching a campaign takes two calls: the first only states the daily spend and your balance. Every action goes through the same checks as the buttons in Castopia, including your wallet balance and Eve's spending limit. The assistant never sees a card; when money is needed it gets a checkout link to hand you.
How do I disconnect an assistant?
In Castopia on the web, open Settings, API keys. Each connection is listed under the app's name. Delete it and that app stops working at once.
Can my assistant read and change my website's code?
Yes, for a site Castopia built as code. Your assistant lists the site's files, reads any page or the stylesheet, and sends exact changes: new words, a new section, a new page, a photo you give it. Castopia checks every change (nothing broken, nothing loaded from another website, the design kept) and saves it as a preview with its own address. It goes live when you say so, and every earlier version stays one call away. Making changes this way is free.
What else can my assistant change on my account?
What Castopia says your business is (what you sell, who buys, your voice), the facts Castopia remembers, who your ads are aimed at (the searches, the area, who buys), how Eve works and her monthly limit, and whether Eve keeps improving the site. Your assistant asks you first before anything that is public or spends money.
What can't the Castopia MCP server do?
It cannot connect a social or ad account, buy a domain or pay. You do those in Castopia. It hands you a link when one of them is needed.
What it is for a business owner: Castopia MCP server and doing your marketing from ChatGPT or Claude.