Use the Scalar Agent SDK

TypeScript#

Install @scalar/agent and initialize it with a personal token and installation ID:

npm i @scalar/agent
import { agentScalar } from '@scalar/agent'
 
const scalar = agentScalar({ token: 'your-personal-token' })
const installation = await scalar.installation('your-installation-id')

The installation can create tools for the Vercel AI SDK, or MCP server options for OpenAI Agents and Anthropic Claude.

Python#

pip install "scalar-agent[all]"
from scalar_agent import agent_scalar
 
scalar = agent_scalar(token="your-personal-token")
installation = scalar.installation("your-installation-id")

Configuration#

  • token — Personal token used to authenticate requests.
  • baseUrl / base_url — Scalar MCP server base URL. It defaults to the Scalar environment.

Create tokens under Dashboard → Account → API Keys.

Next steps#

Updated

Was this page helpful?