Skip to main content
arg.ai exposes workspaces through a Model Context Protocol server over Streamable HTTP. Any MCP client can connect and work in the workspace directly - reading and writing files, running commands, searching, deploying servers and sites, and running Actions. Use MCP when the agent already exists somewhere else and you want it to reach your workspace. Use the Agent API when you want arg.ai to run the agent for you.

Endpoints

Access is enforced per call: an organization-scoped connection only reaches the workspaces the credential can already access, and a read-only member cannot invoke a write tool.

Connecting

Both user-owned and service-account keys work. A user-owned key uses your access within the key’s organization; a service-account key uses that account’s role and grants - see API keys.

Tools

The MCP server exposes the agent’s own tools, plus a few that exist only over MCP for binary transfer and workspace discovery.

Files

Shell and code

Actions

Four meta-tools front the whole Action catalog, so the client never carries a schema per Action.

Web

Sites

Automations

Skills, comments, and notifications

For send_notification, omit users or pass me to notify yourself. Recipients can also be user ids or email addresses. Omit channels for all delivery, or select any of ios, email, and in-app; recipient preferences still apply. A target derives the notification title, so title is optional when target is present.

Organization scope only

Tools carry MCP annotations, so a client can tell read-only tools from destructive ones before calling them.

Working well over MCP

  • Call list_skills before starting a task you have a skill for. Skills are how a workspace tells an agent your conventions; loading one is cheaper than inferring them.
  • Prefer create_upload_session over base64 in a tool argument for anything large. It returns a manifest with the file’s Arg URL plus the part, complete, and abort URLs. The completion response returns the file URL again after the upload finishes.
  • Use the URL returned by write_file to open the created file directly in Arg.
  • Reach for run_action before hand-rolling a capability - media generation, PDF rendering, and integration calls already exist in the catalog.
  • Agents overview - the same abilities, driven by the API instead
  • Tools - the REST equivalents of the file and shell tools
  • Actions - what search_actions is searching
  • API keys - credentials for non-OAuth clients