AI via MCP
Geksy has two MCP servers, both built from one tool description:
| Remote MCP | Local geksy-mcp | |
|---|---|---|
| Where | https://api.geksy.cc/mcp | on the computer with the Geksy app |
| Transport | Streamable HTTP (stateless) | stdio |
| Sign-in | an ak_… API key in the header, or OAuth | the app you’re signed in to; an API key for cloud tools |
| Tools | account, usage, plans and payment, profiles and templates, proxies, computers, support, webhooks | the same cloud tools + page actions: snapshot, click, typing, scrolling, tabs, asking a person |
| Browser | doesn’t launch one | launches profiles in the app on this computer |
Every call runs with the member’s permissions and within the key’s limits, like a regular
cloud API request. An error comes with an action field telling what to do next (see
Error codes). How to get a key or access by code: Geksy for AI agents.
Remote MCP
Section titled “Remote MCP”The address is https://api.geksy.cc/mcp. Clients with OAuth support sign in by themselves: give them just the
address, and the client opens a sign-in page where a person picks the workspace, permissions, access period and
spend limit. Other clients send an API key in the Authorization: Bearer ak_… header.
Clients that add a server with a terminal command (example: claude mcp add):
claude mcp add --transport http geksy https://api.geksy.cc/mcp --header "Authorization: Bearer ak_…"Clients with an mcpServers JSON configuration (the address field is called url or httpUrl, depending on the
client):
{ "mcpServers": { "geksy": { "url": "https://api.geksy.cc/mcp", "headers": { "Authorization": "Bearer ak_…" } } }}A check without a client:
curl -s https://api.geksy.cc/mcp -H "Authorization: Bearer ak_…" -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Without a key, the server answers 401 with the OAuth metadata address (resource_metadata), which is how a client
finds where to sign in. The server description for catalogs is
https://api.geksy.cc/.well-known/mcp/server-card.json.
Local geksy-mcp
Section titled “Local geksy-mcp”pip install "geksy[mcp]"geksy-mcp # same as: geksy mcp or python -m geksy.mcpThe Geksy app must be running and signed in: the server takes the local API port and token from agent.json.
For cloud tools, set GEKSY_SERVER=https://api.geksy.cc and GEKSY_API_KEY=ak_….
Clients that add a server with a terminal command (example: claude mcp add):
claude mcp add geksy -e GEKSY_SERVER=https://api.geksy.cc -e GEKSY_API_KEY=ak_… -- geksy-mcpClients with an mcpServers JSON configuration:
{ "mcpServers": { "geksy": { "command": "geksy-mcp", "env": { "GEKSY_SERVER": "https://api.geksy.cc", "GEKSY_API_KEY": "ak_…" } } }}Clients with a TOML configuration ([mcp_servers.<name>]):
[mcp_servers.geksy]command = "geksy-mcp"env = { GEKSY_SERVER = "https://api.geksy.cc", GEKSY_API_KEY = "ak_…" }Toolsets
Section titled “Toolsets”The fewer tools, the more accurately the model picks them. The GEKSY_MCP_TOOLSETS variable sets the toolsets,
comma-separated:
| Toolset | What’s in it |
|---|---|
local | page actions and launching profiles on this computer |
core | account, usage, profiles, templates, computers |
billing | plans, price before buying, payment, top-up |
proxies | proxies and Geksy proxies |
support | support tickets |
webhooks | webhooks |
danger | custom JavaScript on the page (geksy_page_eval); it must also be turned on in the app |
all | everything |
The default is local,core. Tools from earlier geksy-mcp versions (geksy_workspaces, geksy_start, geksy_run,
geksy_scenario, Geksy proxy tools and others, see Python SDK)
are always available.
How the model works with a page
Section titled “How the model works with a page”geksy_session_open: start the profile (or take the one already open);geksy_page_snapshot: a page snapshot with element refs (e12);geksy_page_click,geksy_page_type,geksy_page_fill… by a ref from the snapshot;geksy_page_snapshotagain to check the result;- a person is needed (an SMS code, a confirmation):
geksy_ask_human; geksy_session_close: close the profile; its data goes to the cloud.
You don’t have to give passwords to the model: save them in the app and write {{secret:name}} in the typed text,
see Secrets. The value never reaches the model: snapshots show the field as
••••.
Limited access. Instead of full access to the app, give geksy-mcp a limited token
(python -m agent token create --name mcp --scopes automation.read,automation.control) in GEKSY_AGENT_TOKEN (for an app on
another computer or in Docker, also GEKSY_AGENT_HOST and GEKSY_AGENT_PORT). The model sees only the tools the token
allows: without automation.control the page is read-only, without automation.eval there is no custom JavaScript.
Large results. geksy_page_snapshot, geksy_page_extract and geksy_page_screenshot take to_file: the result
is saved to a file (folder GEKSY_MCP_OUT_DIR, a temporary geksy-mcp folder by default) and the model gets its path
and size. A snapshot or extraction larger than the response limit goes to a file by itself, with the start of the text
in the response.
A person is needed. geksy_ask_human shows a Geksy tray notification; when the step is done, press “Done” in
the tray or in the app window. On a server without a person (Docker) the response contains human_required: the
program calls a person itself, and “Done” is POST /api/v1/human_done.
OpenAI Agents SDK and LiteLLM
Section titled “OpenAI Agents SDK and LiteLLM”Your own Python AI agent with any model LiteLLM supports connects to the remote MCP like any Streamable HTTP server:
pip install "openai-agents[litellm]"import asynciofrom agents import Agent, Runnerfrom agents.extensions.models.litellm_model import LitellmModelfrom agents.mcp import MCPServerStreamableHttp
async def main(): async with MCPServerStreamableHttp( name="geksy", params={"url": "https://api.geksy.cc/mcp", "headers": {"Authorization": "Bearer ak_…"}, "timeout": 60}, cache_tools_list=True, ) as geksy: agent = Agent( name="geksy-agent", instructions="Work with Geksy profiles using the geksy_* tools.", model=LitellmModel(model="<provider/model in LiteLLM format>", api_key="…"), mcp_servers=[geksy], ) result = await Runner.run(agent, "Show my profiles") print(result.final_output)
asyncio.run(main())Tested on 2026-10-15: openai-agents 0.24.0, litellm 1.83.0. The model receives the server’s tools, and a tool call and its result pass through the Agents SDK → LiteLLM → MCP chain. The model in the test was a stub of an OpenAI-compatible API, without AI keys.
Widgets in the chat
Section titled “Widgets in the chat”Clients that support the MCP Apps extension show two interactive Geksy widgets next to the answer. Both servers,
the remote one and geksy-mcp, serve them by themselves; there is nothing to set up:
| Widget | When it appears | What’s in it |
|---|---|---|
| Spending and balance | after geksy_usage | the balance and how many days it will last, spending over 7 days and per day on average, the key’s spending this month and its limit, GB packages (GB left), upcoming dates (trial end, plan renewal, dedicated IP term ends); Top up (pick an amount and the payment page opens) and Pay for the plan buttons |
| Profiles and launch | after geksy_profiles | the profile list with search, a Running / Free filter and tags; Stop buttons and, in geksy-mcp, Start |
Widget buttons call the same tools (geksy_topup, geksy_profiles, geksy_profile_stop, geksy_start,
geksy_stop) with the same key or token: permissions, limits and spend approval work as for any call. In the remote
MCP the Stop button is shown only when the key has the profile.force_release permission; profiles are launched
by the Geksy app on a computer, so Start is only in geksy-mcp.
A widget is a single page without external addresses or network requests: it gets data only through the client. The
theme (light or dark) and language (English or Russian) come from the client. A client without MCP Apps gets the same
tool answer as before, as text and structuredContent.
Cloud (remote MCP and geksy-mcp):
| Tool | What it does |
|---|---|
geksy_whoami, geksy_status, geksy_usage | who am I (workspace, permissions, key limits); service status; usage and forecast |
geksy_plans, geksy_quote, geksy_checkout, geksy_topup | plans; price before buying; paying for a plan; topping up the balance |
geksy_x402_topup | topping up the balance by x402 with your own wallet (USDC on Base) |
geksy_profiles, geksy_profile, geksy_profile_create, geksy_profile_update, geksy_profile_delete, geksy_profile_stop | profiles: list, one, create, change, move to trash, stop a running one (profile.force_release permission) |
geksy_profile_fields, geksy_profile_field_create, geksy_profile_field_update, geksy_profile_field_delete | own profile fields (table columns): list, add, change (name, chip options), delete; values — fields in geksy_profile_create/update, filter and sort — where, sort in geksy_profiles |
geksy_templates, geksy_profiles_from_template | templates; profiles from a template |
geksy_proxies, geksy_proxy_import, geksy_proxy_catalog, geksy_proxy_package_buy, geksy_proxy_ports_create, geksy_proxy_buy, geksy_proxy_buy_and_attach, geksy_proxy_rotate | proxies: list, import; Geksy proxies: catalog, traffic package (GB with no expiry), ports in a package, pay-as-you-go purchase, purchase attached to profiles, new IP |
geksy_devices | the workspace’s computers |
geksy_support_create, geksy_support_tickets | support tickets |
geksy_webhooks_list, geksy_webhook_create, geksy_webhook_delete | webhooks |
On the page (geksy-mcp only):
| Tool | What it does |
|---|---|
geksy_session_open, geksy_session_close, geksy_sessions | start a profile, close it, profiles running on this computer |
geksy_page_navigate | open an address in the current tab |
geksy_page_snapshot, geksy_page_screenshot | snapshot with element refs; screenshot (as an image) |
geksy_page_click, geksy_page_type, geksy_page_fill, geksy_page_select, geksy_page_press, geksy_page_scroll | click, type like a person, fill a field, choose an option, press a key, scroll |
geksy_page_wait_for, geksy_page_extract | wait for an element, text or address; extract text, tables, links |
geksy_tabs | tabs: list, open, switch, close |
geksy_ask_human | ask the person at the computer to do a step and wait |
geksy_page_eval | custom JavaScript in an isolated world of the page (danger toolset) |
Payment and deletion are marked as destructive for the client (destructiveHint), reading as safe
(readOnlyHint). Full schemas are in the tools/list response.
You can also connect a browser MCP server of your own (Playwright MCP, Chrome DevTools MCP) to a profile through the permanent CDP address, see Connect your browser code.
Tested (2026-10-10): remote MCP with a reference MCP client, protocol versions 2025-03-26, 2025-06-18,
2025-11-25, 2026-07-28, sign-in with a key and OAuth 2.1; geksy-mcp with the mcp 2.2 package. The
configurations above use the common format; check your client’s documentation for its exact field names.
Moving from the first-version MCP server
Section titled “Moving from the first-version MCP server”The first-version MCP server worked on top of the old local server on port 8700 (…_URL and …_KEY variables,
numeric profile numbers, session_id). It’s deprecated: it won’t get new features, so move to geksy-mcp. What
changes:
- a profile is identified by
workspace_id+profile_id(IDs from the cloud) instead of a number andsession_id; - you don’t need the old server’s address and key:
geksy-mcpworks through the app you’re signed in to; - instead of one tool with a list of actions, there’s a separate tool for each action.
| Was (first version) | Now (geksy-mcp) |
|---|---|
| profile list | geksy_profiles (with workspace_id; workspaces: geksy_workspaces) |
| start a profile or attach to a session | geksy_session_open |
| session list | geksy_sessions |
| stop a session | geksy_session_close |
action list: goto | geksy_page_navigate |
click by number, text or selector | geksy_page_click by a ref from the snapshot or a selector |
type, press, scroll, wait_for, extract | geksy_page_type, geksy_page_press, geksy_page_scroll, geksy_page_wait_for, geksy_page_extract |
eval | geksy_page_eval (danger toolset; JavaScript is turned on in the app) |
new_tab, switch_tab | geksy_tabs |
back | geksy_page_navigate to the address you need, or the back action of the local API |
ask_human | geksy_ask_human |
| snapshot: an image with numbers + an element list | geksy_page_snapshot (text with ref) and geksy_page_screenshot |
| screenshot | geksy_page_screenshot |
| switch window ↔ headless | close and open again: geksy_session_open with headless |