> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Use AIsa in Cursor

> Add AIsa as a remote MCP server in Cursor with one config entry and a browser sign-in. Optionally route chat through AIsa models.

Cursor has a built-in MCP client. Add AIsa as a remote MCP server, sign in once, and Cursor's agent can discover and call AIsa capabilities across web research, finance, social, SEO, sales, and more.

AIsa MCP server:

```txt theme={null}
https://mcp.aisa.one/mcp
```

## Prerequisites

Before you start, make sure you have:

* An AIsa account ([console.aisa.one](https://console.aisa.one)). You sign in through the browser.
* [Cursor](https://cursor.com) installed

## 1. Add the AIsa MCP server

**1. Open MCPs**

In the Cursor sidebar, select **Customize**, then **MCPs**.

**2. Add the server**

Click **New MCP Server**. Cursor opens `~/.cursor/mcp.json`. Add the AIsa entry and save the file:

```json theme={null}
{
  "mcpServers": {
    "aisa": { "url": "https://mcp.aisa.one/mcp" }
  }
}
```

To add AIsa to one project only, put the same entry in `.cursor/mcp.json` in that project.

## 2. Sign in

Under **Customize** → **MCPs**, **aisa** shows **Needs authentication**. Click **Authenticate**, sign in to AIsa in the browser, and approve access. No key is copied. When the connection is ready, **aisa** is listed under **Connected** with its enabled tool count.

> [accordion] Use your API key instead of OAuth
>
> Pass the key as a Bearer header. Cursor resolves `${env:AISA_API_KEY}` from the environment where it was launched, keeping the key out of the configuration file. Add `export AISA_API_KEY="sk-aisa-..."` to `~/.zshrc` or `~/.bashrc`, then quit Cursor and reopen it from a new terminal with `cursor .` (apps launched from the Dock may not inherit shell variables). An unset variable sends an empty token:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "aisa": {
>       "url": "https://mcp.aisa.one/mcp",
>       "headers": { "Authorization": "Bearer ${env:AISA_API_KEY}" }
>     }
>   }
> }
> ```

> [accordion] Cursor CLI (cursor-agent)
>
> `cursor-agent` reads the same `mcp.json`. Approve the server, then sign in:
>
> ```bash theme={null}
> cursor-agent mcp enable aisa
> cursor-agent mcp login aisa
> ```
>
> Run `cursor-agent mcp list-tools aisa` to confirm the tools are available.

## 3. Use AIsa capabilities

Cursor's agent now has the AIsa tools. `search`, `list_categories`, `get_details`, `batch_get_schema`, and `batch_quote` (prices exact calls without running them) are free; `use` and `batch_use` run calls and are billed per call.

Try:

```txt theme={null}
Use AIsa capabilities to search the web and summarize the latest information about Cursor.
```

## Optional: use AIsa models

Cursor also accepts an OpenAI-compatible API key, so chat and agent requests can run on models from the AIsa catalog. This needs an AIsa API key ([console.aisa.one/api-keys](https://console.aisa.one/api-keys)).

**1. Configure the endpoint**

In Cursor Settings (gear icon) → **Models** → **API Keys**, paste your AIsa key (`sk-aisa-...`) into **OpenAI API Key** and turn on **Use OpenAI API Key**. Then turn on **Override OpenAI Base URL** and enter `https://api.aisa.one/v1`.

**2. Add models**

On the same page, click **Add Custom Model** and enter exact AIsa model IDs, for example `gpt-5.5`, `kimi-k2.5`, `claude-opus-4-8`, or `deepseek-v4.1-flash`. Enable them, then pick one in the model picker. The full list is in the [model catalog](https://aisa.one/docs/guides/models.md).

> [!NOTE]
>
> Custom API keys apply to Cursor's chat and agent requests. Cursor-native features such as Tab autocomplete continue to use Cursor's own models and subscription.

## Quick reference

| Item | Value |
| - | - |
| MCP config | `"aisa": { "url": "https://mcp.aisa.one/mcp" }` in `~/.cursor/mcp.json` or `.cursor/mcp.json` |
| Add and sign in | **Customize** → **MCPs** → **New MCP Server**, then **Authenticate** on **aisa** |
| API key | Not needed for MCP; optional Bearer header for headless use |
| Optional models | **Override OpenAI Base URL** `https://api.aisa.one/v1`, exact IDs from the [catalog](https://aisa.one/docs/guides/models.md) |

## Troubleshooting

| Problem | Fix |
| - | - |
| **aisa** not listed under **Customize** → **MCPs** | Check that `mcp.json` is saved, is valid JSON, and is in the right location |
| Still shows **Needs authentication** | Click **Authenticate** again and finish the sign-in in the browser |
| AIsa tools missing in chat | Under **Customize** → **MCPs**, check that **aisa** shows a tool count, not **Needs authentication** or **Error** |
| `cursor-agent` says the server has not been approved | Run `cursor-agent mcp enable aisa`, then `cursor-agent mcp login aisa` |
| Model requests fail with 401 or 404 | Confirm the base URL is exactly `https://api.aisa.one/v1` and the key is valid in the [console](https://console.aisa.one) |
| "Invalid model" errors | The model name must match a catalog ID exactly, with no `aisa/` prefix |

## Related

> [card] [Use AIsa in Claude](https://aisa.one/docs/guides/tutorials/use-aisa-in-claude.md)
>
> Add AIsa as a custom connector in Claude.

> [card] [Connect via MCP](https://aisa.one/docs/agent-quickstart.md)
>
> MCP setup for other clients.

> [card] [Model Catalog](https://aisa.one/docs/guides/models.md)
>
> Browse model IDs before adding them to Cursor.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.