← All guides

Locus product guide · Updated

treg MCP: setup in Claude Code, Codex, Cursor, ChatGPT

treg's hosted MCP server is at https://treg.to/mcp/ and signs in with OAuth, or with a treg team token as a bearer header, so Claude Code, Codex, Cursor, ChatGPT and Claude.ai can all add it by URL. In Claude Code the shortest path is treg's plugin, which adds the server and the treg skill in one install. On a machine with a shell, treg's installer adds its CLI and skill to every agent it finds. Once connected, the agent searches treg's catalog, reads a tool's price and calls it from a prepaid team balance. If the same agent also needs language models on one balance, Locus Pro is a similar hosted MCP connection.

Setup, step by step

  1. Step 1

    Install the treg plugin in Claude Code

    treg's own Claude Code plugin adds the MCP server and the treg skill, with no token and no configuration file.

    /plugin marketplace add superdesigndev/treg
    /plugin install treg@treg
  2. Step 2

    Sign in from /mcp

    Run /mcp, pick plugin:treg:treg and choose Authenticate. On treg's consent page, sign in, select the team that pays for calls and approve. The treg tools then appear in Claude Code.

    /mcp
  3. Step 3

    Or add the server by URL in Claude Code

    Without the plugin, add the hosted server with Claude Code's own command, then authenticate from /mcp the same way.

    claude mcp add --transport http treg https://treg.to/mcp/
  4. Step 4

    Add treg to Codex

    Add the same URL with Codex's MCP command, then run the login command to open treg's sign-in in your browser. treg's installer in the last step also puts the treg skill into Codex.

    codex mcp add treg --url https://treg.to/mcp/
    codex mcp login treg
  5. Step 5

    Add treg to Cursor

    Put this entry in Cursor's mcp.json. It is the same entry treg's own Cursor plugin ships, and Cursor runs the OAuth sign-in when you first use it.

    {
      "mcpServers": {
        "treg": {
          "url": "https://treg.to/mcp/"
        }
      }
    }
  6. Step 6

    Add treg in ChatGPT or Claude.ai

    In ChatGPT on the web, open Plugins, select the plus button, choose Add custom MCP server, enter https://treg.to/mcp/ with OAuth and select Create as a plugin. In Claude.ai, add the same URL as a custom connector under Settings, Connectors. Sign in and choose the team that pays. Nothing is installed.

  7. Step 7

    Or install the CLI and skill

    On a machine with a shell, treg's installer adds the treg CLI and the treg skill for every agent it detects, such as Claude Code, Codex, Cursor and opencode. treg login opens a browser sign-in, and a bare treg prints your account, team, balance and next commands.

    curl -fsSL https://treg.to/install.sh | sh
    treg login
    treg

What does treg's MCP server do?

treg calls itself OpenRouter for agent tools. Its MCP server gives an agent one connection to treg's catalog, which listed 4,292 endpoints across 145 providers on December 2, 2026, deepest in people and company data, social platforms, SEO, ads and media generation. The same connection reaches the APIs, OAuth connections and skills your team has registered. treg adds the provider credential on its own server, so the agent never holds a provider key.

The core loop is search, read, call: catalog_search finds tools by the job you describe, catalog_get returns a tool's parameters and price, and call runs it. The table lists the tools treg's llms.txt names for the server.

What does treg's MCP server do?
MCP toolWhat it does
catalog_searchFinds catalog tools by the job, such as backlinks for a domain, with their prices
catalog_getReturns one tool's inputs, price and measured reliability, and compares providers of the same job
callRuns a catalog tool, or one of your team's own tools
call_mediaRuns an audio endpoint and returns the audio
call_resultReads a call whose answer never arrived, such as after a timeout
balance and my_toolsReport the team's prepaid balance and list the team's own registered tools
resources_listLists items your team created on treg's provider accounts, such as a cloned voice
catalog_request, feedback, review, mark and compareRecord a missing capability, a problem, a rating, a later-confirmed result or a side-by-side comparison. They call no provider.

Which treg connection should you use?

Every door reaches the same catalog and team balance. Pick by where your agent runs. Details come from treg's llms.txt, docs, Claude pages and GitHub repository on December 2, 2026.

treg's llms.txt adds one case: if an agent in a cloud sandbox can't reach treg.to because of the sandbox's network policy, it should not keep retrying the installer. Add https://treg.to/mcp/ as an MCP connector instead, install on a machine with normal network access, or ask an admin to allow treg.to on port 443.

Which treg connection should you use?
Way inAddress or commandSigns in withFits
Hosted MCP serverhttps://treg.to/mcp/OAuth, or a team or agent token as a bearer headerAny MCP client, including ChatGPT, Claude.ai, Cursor, Codex and Claude Code
Claude Code plugin/plugin install treg@treg from the superdesigndev/treg marketplaceOAuth from /mcpClaude Code users who want the server and the skill in one install
Claude connectorhttps://treg.to/mcp/v2/OAuth with PKCEClaude.ai users who want the curated catalog only, without media generation or team tools
CLI and skillcurl -fsSL https://treg.to/install.sh | sh, then treg loginBrowser sign-in, an emailed code or a team tokenLocal coding agents with a shell, and CI runs with --token
HTTP APIhttps://treg.to/call/<tool id> with an X-Treg-Token headerA team or agent tokenYour own code and backends

What does a treg call cost over MCP?

Installing the plugin, searching the catalog and reading a tool's details are free. Each metered call is charged per call, or per success where the provider bills that way, from the team's prepaid balance, and catalog_get shows the price before the agent calls. There is no subscription or seat, and a new verified account gets $1.00 of credit once. Prices checked December 2, 2026.

Calls on your team's own provider keys, registered tools and connected accounts are not metered by treg; where the provider charges, it bills you directly. Over MCP each call reports its cost, and treg's skill tells the agent to state the expected total before a loop or a generation task and to keep a running sum.

What if treg's tools don't show up or a call goes wrong?

These fixes come from treg's skill, llms.txt and Claude connector page.

  • A tool answers not authenticated: sign in through the client's MCP or connector settings. In Claude Code, run /mcp, pick treg and choose Authenticate.
  • Calls go to the wrong team: the team is the one you chose on treg's consent page. A team or agent token always carries its own team.
  • A long answer looks cut off: over MCP, long answers come in pages. Ask again with page.next_offset as the offset, or lower max_chars if your client trims replies.
  • A call timed out: check call_result before calling again, because the first call may have finished.
  • The installer can't reach treg.to: the environment's network policy is blocking it. Use the MCP connector instead.
  • Image or video tools are missing in Claude.ai: the https://treg.to/mcp/v2/ connector is curated and leaves out media generation and team tools. Use https://treg.to/mcp/ for the full set.

Is there a similar MCP connection that adds language models?

Yes. Locus Pro is another hosted MCP connection to many paid APIs, paid from prepaid credits, and it adds language models: OpenAI, Anthropic and Gemini chat endpoints sit next to search, scraping, people data and speech tools on the same credits. treg's catalog centers on data and media tools; its catalog search for chat completions on December 2, 2026 returned answer and AI-search monitoring tools rather than a general chat API.

Connect Locus Pro at https://api.paywithlocus.com/api/credits/mcp with a browser sign-in, or install the Locus plugin for Claude Code, Codex and Grok Build, which adds the connection and three skills. treg stays the better pick for its depth in SEO, social and ads data, your own provider keys on any team, and its $1.00 free start, since new Locus Pro accounts begin at a zero balance. Both servers can sit in the same client. Prices checked December 2, 2026.

Frequently asked questions

What is the treg MCP server URL?

The full server is at https://treg.to/mcp/ and signs in with OAuth or a bearer token. treg's Claude connector uses https://treg.to/mcp/v2/, a curated version without media generation or your team's own tools.

How do I add treg to Claude Code?

Run /plugin marketplace add superdesigndev/treg, then /plugin install treg@treg. Then run /mcp, pick plugin:treg:treg and choose Authenticate. The plugin brings the treg skill and the MCP server together.

Do I need an API key to use treg's MCP server?

No provider keys, and no treg token when your client supports OAuth. Code or CI jobs without a browser can send a treg team or agent token as a bearer header instead.

Can I use treg in ChatGPT?

Yes, as a custom MCP server from ChatGPT's Plugins page with the URL https://treg.to/mcp/. OpenAI's help center says full MCP support is for Business and Enterprise or Edu workspaces, and that Pro users can connect custom servers with read and fetch permissions.

Is treg's MCP server free?

Connecting, searching and reading prices are free. Metered calls are paid from a prepaid team balance, and a new verified account gets $1.00 of credit once. Calls on your team's own keys are not metered by treg. Prices checked December 2, 2026.

Implementation references

Use these first-party references for current request contracts and account requirements. Tool availability, prices, and negotiated terms can change.

Sources

Third-party details were checked on December 2, 2026. Vendors change pricing and features often, so confirm on their site before you decide.

Related guides