Most write-ups of a remote MCP server stop at the add command. That is the easy part. I wanted the layer after it: what initialize actually returns, which tools tools/list advertises, whether those input schemas match a published card, and what a handful of live calls do, including ones that should fail.
I ran the measurement on 30 November 2026, from 11:37:03 to 11:38:13 Asia/Shanghai (UTC+8), against a single HTTPS endpoint, with no API key and no Authorization header. The numbers below are from that run. They are not averages, and they are not copied from a docs page.
How I connected, and how I measured
The official form in Connect Claude Code to tools via MCP is still:
claude mcp add --transport http <name> <url> The page recommends HTTP for remote servers, and it notes that JSON configs need an explicit "type": "http" (with streamable-http accepted as an alias). I could not drive Claude Code itself headlessly on the machine I used, so I did not pretend to have a session log from the CLI. I talked to the same class of endpoint with a small Python 3.13.5 client built on urllib, over Streamable HTTP. The client sent Accept: application/json, text/event-stream, recorded wall-clock time and elapsed milliseconds, and kept every raw body.
I pointed the client at UGCfy AI, an AI UGC ad generator, and used the remote endpoint documented on its claude code mcp page as the only server in this test. That page shows the official HTTP add command already filled in:
claude mcp add --transport http ugcfy https://ugcfy.ai/api/mcp The URL needs no key. Every request below went to https://ugcfy.ai/api/mcp. I left the client unsigned, with no token in the headers.
A GET with an empty body returned HTTP 405 in 460.3 ms, with Allow: POST and a JSON-RPC error {"code": -32000, "message": "Method not allowed."}. An OPTIONS probe returned HTTP 204 in 491.0 ms. Its Allow header listed DELETE, GET, HEAD, OPTIONS, POST. A few minutes later I tried HEAD and DELETE as a follow-up: both returned HTTP 405 with Allow: POST. The OPTIONS list and the methods the server actually accepted did not match. I did not treat that as a security finding; I am only recording what the headers said.
The handshake
initialize with protocolVersion set to 2025-06-18 returned HTTP 200 in 420.6 ms, as ordinary JSON, not a server-sent event stream. The result negotiated the same protocol version and identified the server as ugcfy version 0.1.0. The only capability it advertised was tools.listChanged: true. No Mcp-Session-Id header came back, on this call or on any later one.
The required notifications/initialized notification, sent without a JSON-RPC id, returned HTTP 202 and an empty body in 464.5 ms. After that, tools/list succeeded without a session header.
If you are writing a client, that is the working baseline I actually observed: JSON responses, a negotiated 2025-06-18 protocol, and no session identifier to store.
The tool list, and how close the published card was
tools/list returned HTTP 200 in 463.2 ms and named five tools, in this order: breakdown_ad, rewrite_ad_for_product, generate_hooks, write_ugc_script, and estimate_ad_cost. That is the same set, in the same order, as a published JSON server card I fetched from the same site the same morning.
The names, titles, descriptions, required fields, property names, enums, and numeric constraints matched. The live payloads were not byte-identical to the card. Every live inputSchema added a $schema key pointing at the draft-07 meta-schema. Every live tool also carried annotations.openWorldHint: true, which the card omitted, and an execution object with taskSupport set to "forbidden", which the card did not include at all. I am reporting those fields as returned. I did not infer a product policy from taskSupport.
What you can actually send is more useful than the envelope:
| Tool | Required | Other properties | Constraints I logged |
|---|---|---|---|
breakdown_ad | none | video_url, transcript, notes | transcript minLength 20, maxLength 4000; video_url is a URI, maxLength 500 |
rewrite_ad_for_product | product | breakdown_id, reference_video_url, reference_transcript, platform, variants | platform is tiktok, reels, or meta; variants is an integer from 1 to 3, default described as 2 |
generate_hooks | product | platform | same platform enum; product minLength 4, maxLength 2000 |
write_ugc_script | product | (none) | only product |
estimate_ad_cost | none | budget, impressions, cpm | each is a number with exclusiveMinimum 0; no field is required |
additionalProperties was false on all five. I did not call video_url or reference_video_url, so this run says nothing about transcription of a public TikTok or Reels link.
A control: solve for budget, impressions, or CPM
I started with estimate_ad_cost because the contract is a formula, not a generated paragraph. Give any two of budget (USD), impressions, and CPM, and the third should follow from budget = cpm * impressions / 1000.
| Inputs | Elapsed | solved_for | Structured result |
|---|---|---|---|
budget 100, cpm 10 | 474.3 ms | impressions | budget_usd 100, cpm_usd 10, impressions 10000 |
budget 250, impressions 50000 | 481.2 ms | cpm | budget_usd 250, impressions 50000, cpm_usd 5 |
cpm 8.2, impressions 100000 | 573.9 ms | budget | cpm_usd 8.2, impressions 100000, budget_usd 820 |
All three match the arithmetic. The JSON-RPC layer was HTTP 200 with a structuredContent object and a short text line such as Budget $100 · 10,000 impressions · CPM $10.
Two edge cases were more interesting than the happy path. Sending only budget 100 is schema-valid, because nothing is required, but it is not enough to solve. The tool returned HTTP 200 in 428.2 ms with isError set to false and the text "Give any two of budget (USD), impressions, and cpm, and I will solve for the third." There was no structuredContent. That is a soft refusal, not a JSON-RPC error.
Sending all three values, already consistent (budget 100, cpm 10, impressions 10000), also returned HTTP 200, in 414.0 ms. The structured object echoed those three numbers and set solved_for to "cpm". I did not test an inconsistent triple, so I do not know whether the server would prefer two of the fields, flag the conflict, or do something else.
Generative tools, on an invented fixture
The remaining tools write copy. To keep the input under my control I invented both fixtures. They are not a real advertiser, and I did not pass a live video URL.
The product description was: a foldable aluminum desk lamp with a clamp base, four brightness levels, USB-C charging, and a 5000K daylight mode, sold as a desk accessory for people who work at a kitchen table. I did not give it a brand name, a padded clamp, or a medical or comfort claim.
The reference ad was a short invented voiceover about a table-clamp phone holder: shaky phone videos, a clamp that sits at eye level on a kitchen table, folds into a drawer, locks so it does not wobble, a week of recipe videos, and a link in bio. I wanted a structure I could check by hand.
generate_hooks with that lamp description and platform set to tiktok returned HTTP 200 in 18,333.4 ms. structuredContent contained platform: "tiktok" and eight hooks, each with type, text, and why. The types were problem, curiosity, pov, before-after, negativity, problem, curiosity, and before-after. The tool description lists social proof as one of the labelled types. This run did not include it, and two types appeared twice. The lines stayed on the attributes I had supplied. The first was "I'm done balancing my laptop under the one sad ceiling light." The third was "POV: your kitchen table is your office again, so you finally fix the lighting."
breakdown_ad on the invented clamp transcript, with a note that it was a fixture and not a live URL, returned HTTP 200 in 6,404.3 ms. transcript_source was user_provided. The breakdown_id was bd_5865943e0b4dd4b4. The hook type was problem, and the structure was hook, demo, proof, cta. Those labels match the text I sent: the opening line about shaky videos, the sentence that describes the clamp, the week of recipe videos, and the link in bio. The selling points were "Holds phone at eye level", "Compact and folds flat for storage", and "Stable design (legs lock, no wobbling)". I did not find a label I would call a miss on this short fixture.
I then passed that breakdown_id to rewrite_ad_for_product with the lamp description, platform set to tiktok, and variants set to 1 (the schema describes the default as 2). The call returned HTTP 200 in 13,771.5 ms. It produced one variant, named "Problem-Hook Lamp Demo", with five scenes and total_duration_sec 30 (5, 8, 7, 5, and 5). The opening line kept the reference framing: "Okay I have to show you this because my desk was always dark and I thought I needed a whole office setup." The later scenes used the clamp, the four brightness levels, USB-C, and the fold-flat storage I had actually described. One added phrase was not in my input: the 5000K mode "makes my screen work way easier on the eyes." The result also included an open_url field that pointed at the product site, with UTM parameters derived from the tool name and my clientInfo. I did not open that URL, and I am not treating it as part of the measurement.
Where a script tool added facts I did not supply
write_ugc_script takes only product. It is the tool you would call when you have no reference ad. That call returned HTTP 200 in 24,667.2 ms, the slowest in the run, with four scripts and a profile object. The durations were 25, 20, 25, and 20 seconds, and the recommended script was "Kitchen Table WFH Fix".
The profile did not stay inside the description I sent. It invented a brand name, "FoldLight". Under proof points it added a "Padded clamp mechanism protects table surfaces from scratches" and "Multi-angle pivot joints allow precise glare-free positioning." Neither padding nor pivot joints were in the input. The scripts used those inventions. One line said a 5000K daylight mode "eliminates screen glare completely." Another ended with "grab this lamp today and save your eyes." A later script claimed "soft non-marking padding" that would not leave "a single scuff."
Those are useful failures to log, not a reason to discard the tool. If you are going to call a script generator from an agent, the output still needs a pass that checks every product fact against the input you actually provided. A schema can tell you that product is required. It cannot tell you that the model added a brand and a padded clamp.
Calls that should fail
I finished with three invalid tools/call requests. All three returned HTTP 200, which is what you want from the transport, and set isError to true in the tool result. None of them was a JSON-RPC envelope error.
| Call | Elapsed | Tool result |
|---|---|---|
not_a_real_tool | 455.3 ms | MCP error -32602: Tool not_a_real_tool not found |
generate_hooks with no product | 518.9 ms | MCP error -32602: Input validation error: Invalid arguments for tool generate_hooks: Required at product |
breakdown_ad with transcript "too short" | 403.0 ms | MCP error -32602: Input validation error: Invalid arguments for tool breakdown_ad: String must contain at least 20 character(s) at transcript |
The short-transcript error matches the minLength 20 in the schema. The missing-product error matches the required array. Compare that with estimate_ad_cost given only a budget: same HTTP 200, but isError was false and the message was plain text. Invalid input is not handled the same way on every tool.
A compact client that performs the handshake, lists the tools, and runs the first CPM solve looks like this:
import json import time import urllib.request URL = "https://ugcfy.ai/api/mcp" HEADERS = { "Content-Type": "application/json", "Accept": "application/json, text/event-stream", } def rpc(method, params=None, id_=1): body = {"jsonrpc": "2.0", "method": method} if id_ is not None: body["id"] = id_ if params is not None: body["params"] = params t0 = time.perf_counter() req = urllib.request.Request(URL, data=json.dumps(body).encode(), headers=HEADERS) with urllib.request.urlopen(req, timeout=180) as resp: raw = resp.read().decode() status = resp.status elapsed_ms = round((time.perf_counter() - t0) * 1000, 1) parsed = json.loads(raw) return status, elapsed_ms, parsed print(rpc("initialize", { "protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "ugcfy-mcp-measure", "version": "0.1"}, }, id_=1)[:2]) rpc("notifications/initialized", {}, id_=None) status, elapsed_ms, listed = rpc("tools/list", {}, id_=2) print(status, elapsed_ms, [t["name"] for t in listed["result"]["tools"]]) status, elapsed_ms, solved = rpc("tools/call", { "name": "estimate_ad_cost", "arguments": {"budget": 100, "cpm": 10}, }, id_=3) print(status, elapsed_ms, solved["result"]["structuredContent"]) The same initialize, list, and solve sequence in the full log produced the five tool names and {'budget_usd': 100, 'cpm_usd': 10, 'impressions': 10000, 'solved_for': 'impressions'}. That log also kept headers, bodies, and the slower generative calls. If a server ever replies as an event stream, you have to read the data: lines before json.loads. The initialize, tools/list, and tools/call responses in this run were Content-Type: application/json, so the short snippet did not need that branch.
Limits
This is one run against one server, on one morning, with invented fixtures. Generative tools will not return the same hooks or scripts tomorrow, and I would not treat a single eight-hook list as a complete map of the labelled types. I did not call a video URL, I did not hit a rate limit, and I did not feed estimate_ad_cost an inconsistent triple. The product page states that the connection is free, that it needs no account or key, and that fair-use daily limits reset at midnight UTC, with the CPM tool described as unlimited. I can only confirm that this short run completed without a limit error.
I also cannot claim that Claude Code's own UI would display these payloads in the same shape. I used the official add command as the documented wiring step, then measured the remote server with an equivalent Streamable HTTP client. The tool list, the schemas, the arithmetic, the invented profile fields, and the validation errors are properties of that server, not of a particular chat window.
What I trust from the log is narrower than a workflow demo, and more useful to me when I am deciding whether to wire a server into an agent. The handshake was simple. The published card was close, but it was not a complete copy of tools/list. The CPM tool did the arithmetic. The invalid calls failed in a way I could parse. And one script tool added a brand and a padded clamp I never described, which is the part I would put the check on before I let an agent reuse the output.
