Connect over MCP¶
MagicON AI runs its design engines as an MCP server (Model Context Protocol — the standard way an AI assistant calls outside tools). Connect your assistant once and it can design an RF module, solve a PCB stackup, and check the result, using the same engines as the website.
Address: https://api.pcbgenerator.com/mcp/
Sign-in: none. There is no account and no API key.
Questions, bugs or a missing part: email support@pcbgenerator.com. With no account, we have no way to reach you first, so please write to us.
If you would rather call plain HTTPS endpoints, see API reference for LLMs. The engines are the same on both.
Connect¶
One prompt (Claude Code)¶
Paste this into Claude Code. It connects the server and saves the skill, then you restart Claude Code:
Set up MagicON for me: run
`claude mcp add --transport http --scope user magicon https://api.pcbgenerator.com/mcp/`,
then download https://api.pcbgenerator.com/api/mcp-skill/magicon/SKILL.md and save it as
~/.claude/skills/magicon/SKILL.md (make the folder if needed). Show me both results,
then tell me to restart Claude Code.
Claude Code asks you to approve each command first. The Claude app (claude.ai, Claude Desktop) cannot add a connector from a prompt; use the steps below.
Claude Code¶
Claude Desktop and other apps with a "custom connector" screen¶
Add a remote connector and paste the address above. Leave any sign-in fields empty.
Cursor and other clients that read an mcp.json file¶
LangChain (Python)¶
LangChain's MCP adapter turns each MagicON tool into an ordinary LangChain tool, which you can hand to any LangChain agent.
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
async def main():
client = MultiServerMCPClient(
{
"magicon": {
"url": "https://api.pcbgenerator.com/mcp/",
"transport": "streamable_http",
}
}
)
tools = await client.get_tools() # the nineteen tools below
lookup = next(t for t in tools if t.name == "lookup_component_by_mpn")
print(await lookup.ainvoke({"part_number": "HMC8413"}))
asyncio.run(main())
Tested on 13 Nov 2026 with langchain-mcp-adapters 0.3.2. ⚠ Each ainvoke above
opens a new connection, so the session memory described below does not carry
between calls. To chain a design into thermal, PDN and compliance, open one
session with async with client.session("magicon") as session: and load the tools
from it with load_mcp_tools(session) (from langchain_mcp_adapters.tools).
Your client must support the Streamable HTTP transport. Once connected, ask it to list the MagicON tools; you should see nineteen.
Add the MagicON skill (Claude)¶
The tools compute the figures; the skill tells Claude when to use them. It is one
short page: which tool answers which question, to use only the figures you gave, to
report empty slots and unpriced parts honestly, and to run check_grounding on its
draft before it answers you. In our test (Sonnet 5.5, 3 runs each way, 2026-11-27),
Claude checked its draft before answering 3 times out of 3 with the skill and 0 times
out of 3 without it.
Claude Code (any version): save the file into your skills folder. Claude Code 2.1.331 and newer can pick a skill up from an MCP server by itself (a beta), but our server does not offer it that way yet: that path would make MagicON forget earlier results between calls, so we keep it off (checked 2026-11-27).
mkdir -p ~/.claude/skills/magicon
curl -fsSL https://api.pcbgenerator.com/api/mcp-skill/magicon/SKILL.md -o ~/.claude/skills/magicon/SKILL.md
On Windows (PowerShell):
New-Item -ItemType Directory -Force "$HOME\.claude\skills\magicon" | Out-Null
Invoke-WebRequest https://api.pcbgenerator.com/api/mcp-skill/magicon/SKILL.md -OutFile "$HOME\.claude\skills\magicon\SKILL.md"
Claude app (claude.ai or Claude Desktop): download magicon.zip, then open Customize > Skills, click +, then Create skill > Upload a skill, and choose the zip. Skills there need code execution turned on (Settings > Capabilities). Steps from Anthropic's help page Using Skills in Claude, read 2026-11-27; the menu names may change.
Other AI tools (Cursor, VS Code, Gemini CLI, Zed, open-source clients): connect the
server as above. Every tool receives the skill's key rules when it connects. Tools that
list a server's prompts also offer the full skill as the prompt magicon, and
tools that can attach server files can attach skill://magicon/SKILL.md. Which tools
show prompts varies, and we have not tested each one.
All of these get the same file. When we update it, the server copy updates by itself; a downloaded copy does not, so download it again now and then.
The nineteen tools¶
| Tool | What it does |
|---|---|
design_rf_chain |
Designs a transmit chain from a frequency and output power, with real parts, a priced parts list and disclosures |
design_rf_receiver |
Designs a superheterodyne receiver: frequency plan, noise, sensitivity, converter interface |
design_tr_module |
Designs a shared-antenna transmit/receive front end and its safety budgets |
run_link_budget |
Cascaded gain, noise figure and headroom for stages you supply |
run_stackup_solver |
Solves a PCB stackup against impedance targets. Each single-ended trace also returns its loss in dB per mm (copper, board material, roughness; standard copper foil assumed). Give line_length_mm for the line's total loss in dB, and input_power_w as well for the watts it turns into heat |
run_thermal_analysis |
Junction temperature and board heat, from the design in this session |
run_pdn_analysis |
Power-delivery impedance, from the design and stackup in this session |
run_compliance_analysis |
Standards checks on the solved stackup and the chain's output |
run_ota_link |
One-way over-the-air link: path loss, received power, margin and maximum range, in free space |
run_radar_performance |
Radar range equation and pulse limits: received power, SNR, maximum detection range, unambiguous range |
run_planar_filter |
A planar (copper-on-PCB) low-pass or band-pass filter: line sections, footprint, simulated response; name the laminate and its Dk comes from the material catalog |
design_patch_antenna |
A rectangular patch antenna, or a planar array of it: dimensions, resonance, bandwidth, gain and beamwidths; name the laminate and its Dk comes from the material catalog |
run_glass_weave_analysis |
Which PCB glass-weave style keeps impedance variation inside your tolerance, ranked by cost; uses the design frequency from this session when you give none |
lookup_component_by_mpn |
The catalog's summary of a part's headline figures, not the full datasheet: Psat, P1dB, gain, noise figure, OIP3, insertion and conversion loss, each with its datasheet page or "no page on file". Figures the record lacks are named, never filled, and internal estimates are named without their number |
find_components_by_spec |
"Find me an LNA at 2.4 GHz with noise figure under 1 dB": real catalog parts of one type that cover the frequency and meet the limits you state (noise figure, gain, P1dB, Psat, OIP3, insertion loss, and an operating temperature grade — commercial, industrial, military — or range in °C), best first, each figure with its datasheet page or "no page on file". Parts whose record lacks a limited figure are named as not compared, never counted as matches; a limit your user never stated is refused |
run_sparam_cascade |
"How does my chain behave across frequency?": the chain's parts cascaded from the makers' own S-parameter (.s2p) files, giving gain (S21), input and output match (S11, S22) and reverse isolation (S12) at the design frequency and its 2nd and 3rd harmonics, plus a sweep. Small-signal only (no output power). Uses the parts and frequency of the chain designed in this session when you give none. A part with no maker file is named and left out, never filled in |
generate_test_plan |
"How do I test this board on the bench?": a test plan for the transmit chain designed in this session: output power, harmonics, the power after each stage, each supply rail's voltage and current, a temperature run and a spurious scan, with test points and a fixture. Every pass line comes from the design or the regulatory limits on file; a figure the design does not carry is listed under missing and that test only records the value. Transmit chains only |
compare_rf_chains |
"What are my options?": designs a transmit chain, then ranks alternative chains (parts swapped) by cost, size, performance and amplifier DC power (part weight is shown where the catalog states it, but not ranked), with the best-tradeoff set marked; with no arguments it compares the design made earlier in this session |
check_grounding |
Checks a draft you wrote against the results computed in this session; computes nothing |
Every tool is read-only: it reads the part catalog and computes (the lookup only reads). It changes
nothing in any account. A call writes the session's own short-term memory,
described below, which is gone when the connection ends. One exception: when the
open-in-MagicON link is switched on, a successful design call
(design_rf_chain, design_rf_receiver, design_tr_module) also saves a copy of
the session's results, and the inputs each call was given, on our server for up to
7 days, so the link it returns can open them (see "Open the design in the web app"
below).
What is different from the HTTPS routes¶
The session remembers. Over HTTPS every call stands alone. Over MCP, one
connection remembers the results computed in it. So after a design you can call
run_thermal_analysis, run_pdn_analysis and run_compliance_analysis with no
figures re-sent; they use the design. Two limits:
- Only results are remembered: what a tool computed or looked up in the catalog. A number you typed into an argument is not evidence for a later call.
- It lasts one session. A new connection starts empty.
PDN and compliance need a solved board. A design solves one for you and says so
in an autoSolvedStackup field. The exception is a receiver given stages[] or
a T/R front end given txPeakPowerDbm and isolationDb: that result carries no
frequency, so it gets no board. Call run_stackup_solver yourself first.
Pass your user's own words. Every tool except check_grounding requires
user_request: the person's request, verbatim. With it, the result is labelled
grounding.mode: "user_stated". If a figure (a frequency, a power, a search
limit) is not in the user's words or an earlier result, MagicON asks the user for
it directly in their app, using MCP elicitation, and computes with what they type.
Apps that cannot show such a question get the call refused
(user_request_required) when the words are left out, on every tool, including
a follow-up such as thermal after a design: send the words again. Which apps
support elicitation today is not verified.
Field names and units differ per tool. One takes gigahertz, another hertz. Read each tool's own schema rather than copying a body from the HTTPS page.
A refusal is a result. If an input is missing, the tool answers with the error flag set and names what it needs. Treat it as a question for your user, not a crash.
Check before you publish. Before you hand over a report or a summary built from
these figures, pass the draft to check_grounding. It lists every figure no engine
here produced. A pass is a filter, not a proof: it does not check claims outside
the shapes it knows.
Limits¶
- 30 requests per minute per IP address. Connecting and listing tools take about
4 requests (one more for an app that first asks for a newer protocol version), so
a full session (design, solve, thermal, PDN, compliance) fits in a minute with
room to spare. Over the limit you get HTTP
429with aRetry-Afterheader, and the body is a JSON-RPC error (code-32000,idnull) whose message says how many seconds to wait;error.data.retryAfterSecondsholds the same number. - The limit counts web requests, not only tool calls. Connecting and listing tools count.
user_requestis at most 4,000 characters: pass your user's latest message, not the whole conversation. Acheck_groundingdraft is at most 100,000 characters; check a longer one in parts. Over either limit the call is refused, the error names the limit, and nothing is computed.- Some designs take several seconds. Wait for the answer; there is no job to poll.
Open the design in the web app¶
When the link is switched on (FF_MCP_HANDOFF; off by default), a successful
design_rf_chain, design_rf_receiver or design_tr_module call returns two extra
keys: openInMagicOnUrl and openInMagicOnNote. Give the link to your user. They
sign in at pcbgenerator.com and land in the MagicON Agent chat with the same result
cards, where they can export CAD files.
- The link works for 7 days and for one account: the first account to open it keeps the design.
- To make the link work we keep a copy of the session's results, and of the inputs each call was given, for up to 7 days. Once the link is opened our copy is dropped, because the design then lives in that account. A copy nobody opens is deleted after it expires, the next time a new link is created.
- One link per connection: a later design in the same session updates the same link until it is opened.
What it will not do¶
- It does not export CAD files (KiCad, ODB++, Gerber) itself. Those need a signed-in account in the web app; the link above is how a design gets there.
- It does not route a board. Even the web app's KiCad export only sets the stackup and places the parts; the traces are yours to draw.
- It does not test emissions (EMC). No tool here predicts what your board radiates.
- Prices are the catalog's, not a live quote, and some are budget estimates. No stock is checked. Confirm both with a distributor before your user buys.
- Part figures are datasheet values, often one typical value for a whole band rather
than a curve at your exact frequency.
lookup_component_by_mpngives the page each figure came from. - A slot no catalog part can fill comes back in
needsPartFlags, never filled with an invented part. - It does not pass a stock default off as your figure. When a tool fills a gap you
left (a 25 °C ambient, a 62 mil board, a 12 V supply, continuous-wave operation),
the answer lists that input in
assumed_inputsand gives the value it used inassumed_values(or beside it, where the result already echoes it). Pass the input to replace the default. - Compliance results compare a design's transmit power and its board against published limits; they are not a certification.
- No result is a warranty. Every result is provided as is, without warranty, and is
not a certification; each one says so in its
termsfield, which links the Terms of Service.
Related¶
- API reference for LLMs — the same engines over plain HTTPS.
- Read a design result, Design a module, Pick the engine — how an assistant should read what comes back. Each has an "Over MCP" section for the differences.
- How MagicON grounds its numbers.