Connecting AISIA to Claude Code, Cursor, VS Code and JetBrains through MCP
In short
AISIA exposes an MCP server (JSON-RPC 2.0) at https://api.aisia.fr/v1/mcp. In an IDE, the simplest route is the local relay “aisia mcp stdio” shipped with the AISIA CLI: the IDE starts it as a stdio server, and every tool call runs under your account, your permissions and your quotas.
The snippets below follow the format each vendor documented on 2026-11-29. AISIA is an MCP server that exposes its own orchestration tools; it is not a gateway that governs your other MCP servers.
Create an AISIA accountHow it works: an authenticated stdio relay
The aisia mcp stdio command reads JSON-RPC messages on standard input and forwards them to POST /v1/mcp. It refuses to start without a token and runs no command on your machine.
The token is read from the AISIA_TOKEN variable when it is set, otherwise from the system keychain (macOS Keychain, Windows Credential Manager, Secret Service or KWallet on Linux) after signing in with aisia login. The default address is https://api.aisia.fr; AISIA_BASE_URL points the relay at another instance (BaaS or PaaS).
curl -fsSL https://aisia.fr/downloads/install-aisia-cli.sh | sh
aisia login --browser
aisia mcp tools # check access before configuring the IDEOn Windows, the equivalent PowerShell script is https://aisia.fr/downloads/install-aisia-cli.ps1. Installation details are on the SDK and CLI page.
Claude Code
Claude Code adds a stdio server with claude mcp add; everything after the double dash is the server command. For a shared project, the .mcp.json file at the repository root accepts the same server, and Claude Code expands ${VAR} variables in it.
claude mcp add --transport stdio aisia -- aisia mcp stdio
# or, in .mcp.json (project scope):
{
"mcpServers": {
"aisia": {
"command": "aisia",
"args": ["mcp", "stdio"],
"env": { "AISIA_TOKEN": "${AISIA_TOKEN}" }
}
}
}Without an env block, the relay uses the token stored by aisia login. Never commit a token value to .mcp.json: only the ${AISIA_TOKEN} reference belongs there.
Cursor
Cursor reads .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Its environment variable interpolation syntax is ${env:NAME}.
{
"mcpServers": {
"aisia": {
"command": "aisia",
"args": ["mcp", "stdio"],
"env": { "AISIA_TOKEN": "${env:AISIA_TOKEN}" }
}
}
}VS Code
VS Code uses .vscode/mcp.json, with a servers object and a stdio type. An inputs entry of type promptString, with password set to true, asks for the token the first time the server starts, without writing it to the file.
{
"inputs": [
{ "type": "promptString", "id": "aisiaToken", "description": "AISIA token", "password": true }
],
"servers": {
"aisia": {
"type": "stdio",
"command": "aisia",
"args": ["mcp", "stdio"],
"env": { "AISIA_TOKEN": "${input:aisiaToken}" }
}
}
}The aisia binary must be on the PATH of the VS Code process.
JetBrains (AI Assistant)
In Settings | Tools | AI Assistant | Model Context Protocol (MCP), click Add and paste a JSON configuration with command and args. The JetBrains documentation we checked does not describe an env field: sign in with aisia login first so the relay finds the token in the system keychain.
{
"mcpServers": {
"aisia": {
"command": "aisia",
"args": ["mcp", "stdio"]
}
}
}The exposed tools
The authoritative list is the one tools/list returns for your account: some tools are reserved for administrators. The main tools for a developer are the following.
| Tool | Purpose |
|---|---|
| aisia_invoke | Governed invocation: routing, model actually served, trace |
| aisia_chat | Conversation with the AISIA chat |
| aisia_compare_providers | Same question sent to several models, named answers |
| aisia_debate | Debate between several models with a synthesis |
| aisia_models | Catalogue of reachable models |
| aisia_platform_info | Public information about the platform |
| aisia_search_knowledge | Search in the organisation knowledge base |
| aisia_last_trace and aisia_quota | Last call trace and quota consumption |
Token streaming goes over HTTP (SSE) on /v1/chat/completions or /v1/invoke/stream, not through tools/call.
Common errors
- The server does not start: no token was found. Run aisia login or set AISIA_TOKEN in the IDE environment.
- The aisia command is not found: the IDE cannot see the install folder on its PATH. Put the full path of the binary in command.
- tools/list answers but tools/call is refused: discovery can be anonymous, execution requires a valid identity. Check the token and its permissions.
- A 429 response: your organisation quota is used up; aisia_quota shows the consumption.
Frequently asked questions
Is AISIA an MCP gateway for my other MCP servers?
No. AISIA is an MCP server that exposes its own tools (invocation, chat, comparison, debate, model catalogue, knowledge). It neither relays nor governs third-party MCP servers.
Can I connect without installing the CLI?
Yes, an MCP client that speaks HTTP can call https://api.aisia.fr/v1/mcp directly with an Authorization: Bearer header. The stdio relay remains the documented route for IDEs, because it keeps the token out of configuration files.
Do calls made from the IDE use my quota?
Yes. Each tools/call runs with your identity, inside your organisation, and follows the same permission, quota and logging rules as the API.
Which models can the IDE use?
The ones your organisation allows. The aisia_models tool lists the reachable catalogue; a catalogued model is not necessarily enabled.
Where is the full MCP contract?
The MCP server page describes the initialize, tools/list then tools/call sequence and the reference tools. The exact list is always read through tools/list at call time.
Sources
Public facts checked on the dates shown. A vendor page can change: check it before you decide.
- Claude Code, MCP documentation (claude mcp add, .mcp.json), checked on
- Cursor, MCP documentation (mcp.json, ${env:NAME}), checked on
- VS Code, MCP configuration reference (servers, inputs), checked on
- JetBrains AI Assistant, MCP documentation, checked on
Related pages
- AISIA MCP server: protocol and tools
- Quickstart with the OpenAI-compatible API
- AISIA SDKs and CLI
- Compare AI models side by side