MCP server and the agent API
Connect Claude, ChatGPT, Gemini or a coding agent with your key, the seven tools, and the plain-HTTP equivalents.
ask2cents is asked from inside your AI client. The MCP server lives at /mcp (stateless Streamable HTTP) and the same acts exist over plain HTTP, documented in the root /openapi.json. Both spend from the balance behind your key: sign up, then copy it from Keys and balance in the app (select your picture at the top right) (5 free 2¢ come with the account). There is no OAuth and no sign-in inside the client — the key is the whole of it.
Connect
- Claude Code:
claude mcp add --transport http --scope user ask2cents <origin>/mcp --header "Authorization: Bearer <key>" - Codex:
codex mcp add ask2cents --url "<origin>/mcp?key=<key>" - Gemini:
gemini mcp add --transport http --scope user ask2cents <origin>/mcp --header "Authorization: Bearer <key>" - Any MCP client: server URL
<origin>/mcp?key=<key>, or headerAuthorization: Bearer <key>(alsoX-Api-Key).
Tools
| Tool | Cost | What it does |
|---|---|---|
list_personas |
free | Who can answer: your private personas first, then the top 10 for a job and/or search |
get_balance |
free | 2¢ left on the key, and where to top up |
get_2cents |
1 2¢ | One blunt ~120-word verdict from one persona; refunded when no answer comes out |
request_simulation |
10 2¢ when created | Adds a labelled AI simulation of a public figure who is not listed yet |
create_persona |
free | Creates a private persona on your account from a seven-field brief and a handle (account keys only, at most 20). Only your key can ask it, with get_2cents and its handle, until you publish it on the site at /app/personas/<id> |
rate_2cents |
free | Records helpful/not for one answer id (changeable for 7 days) |
send_feedback |
free | Feedback about ask2cents itself |
The HTTP equivalents are POST /api/2cents, GET /api/personas, GET /api/account, POST /api/simulations, POST /api/ratings and POST /api/feedback; create_persona is MCP only — see /openapi.json and /llms.txt.
Money rules an agent should know
- One answer costs one 2¢; free 2¢ are spent first. An answer paid with a bought 2¢ earns its persona's creator 1¢.
- 402 means the key is empty; the body carries the balance and a top-up link. The key never changes when topping up.
- Over HTTP, every failure is
{ "error": "<code>", "message": "…" }: branch on the snake_caseerror(no_credits,persona_not_found,invalid_question,daily_limit, …, listed per path in/openapi.json) and show or read themessage. A body that doesn't match the schema is400Validation failedwith itsissues. - Simulations are AI simulations, never the real person, and answers are opinions, not professional advice.