AAI Gateway logo

AAI Gateway

Unified MCP & Skill management gateway, shared across AI agents, 99% context token savings

Install AAI Gateway

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "aai-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "aai-gateway"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y aai-gateway

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 7d ago.

Overview

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

7/7 checks healthy over the last 40d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · aai-gateway (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars91Stargazers on the source repository.
npm downloads367Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

English | 简体中文 | 日本語 | 한국어


AAI Gateway: Unified MCP & Skill Management, Shared Across AI Agents, 99% Context Token Savings

npm version license


What Is It

AAI = Agent App Interface

AAI Gateway is the interaction gateway for Agent Apps.

What is an Agent App? An Agent App is a collection of capabilities that an Agent can use. For example:

  • An MCP Server is an Agent App — it provides a set of tools
  • A Skill package is an Agent App — it provides one or more skills

In AAI Gateway, they are abstracted as Agent Apps under unified management. Import once, and all AI Agents can use them immediately.


What Problems Does It Solve

Context Bloat

Traditional: 10 MCPs × 5 tools = 50 full schemas ≈ 7,500 tokens injected into every conversation.

AAI Gateway: each Agent App needs only fewer than 50 tokens for a summary, with details loaded on demand. 99% token savings.

Finding Tools Is Hard

Traditional: search GitHub → read READMEs → copy JSON configs → debug connections → restart Agent.

AAI Gateway: tell your Agent "use AAI to search for xxx" — auto-searches, installs, ready to use.

"Use AAI to search for a browser automation tool"

→ Search → finds Playwright MCP → Agent summarizes a one-line Agent App summary → install → ready to use, no restart needed

"Use AAI to search for a PPT creation skill"

→ Search → finds PPT Skill → uses skill description as Agent App summary → install → ready to use, no restart needed

Duplicate Config

Configure the same thing in Claude Code, Codex, and OpenCode separately? Import once through AAI Gateway, all Agents share instantly.


Quick Start (30 Seconds)

Claude Code:

Terminal
claude mcp add --scope user --transport stdio aai-gateway -- npx -y aai-gateway

Codex:

bash
codex mcp add aai-gateway -- npx -y aai-gateway

OpenCode — add to ~/.config/opencode/opencode.json:

config.json
{
  "mcp": {
    "aai-gateway": {
      "type": "local",
      "command": ["npx", "-y", "aai-gateway"],
      "enabled": true
    }
  }
}

OpenClaw:

bash
openclaw plugins install openclaw-aai-gateway-plugin

Once installed, just tell your Agent what you want to do.


Built-in Tools

ToolDescription
search:discoverSearch and install new tools with natural language
mcp:importImport an MCP Server as an Agent App
skill:importImport a Skill package as an Agent App
listAllAaiAppsList all registered Agent Apps
enableApp / disableAppEnable or disable an Agent App per Agent
removeAppRemove an Agent App
aai:execExecute a specific tool within an Agent App

Each imported Agent App generates an app_<app-id> tool that returns the full operation guide and tool list when called.

Preset Agent Apps (auto-discovered when locally installed)

App IDNameDescription
claudeClaude CodeAI coding assistant for code editing, analysis, and development
codexCodexOpenAI-powered AI coding assistant
opencodeOpenCodeAI development assistant for editing files and running commands

Architecture

Architecture


Developers: Get Your Agent App Auto-Discovered

Create an aai.json descriptor and submit it to src/discovery/descriptors/. When a user's local environment meets the discovery.checks conditions, the Agent will auto-discover your Agent App.

config.json
{
  "schemaVersion": "2.0",
  "version": "1.0.0",
  "app": {
    "name": { "default": "My App" }
  },
  "discovery": {
    "checks": [
      { "kind": "command", "command": "my-app" }
    ]
  },
  "access": {
    "protocol": "mcp",
    "config": {
      "command": "my-app-mcp",
      "args": ["--stdio"]
    }
  },
  "exposure": {
    "summary": "Use when the user wants to do X."
  }
}

discovery.checks supports three check types: command (command exists), file (file exists), path (directory exists).

Supported protocols: mcp, skill, acp-agent

Welcome to submit a PR to contribute new Agent App descriptors, or open an issue for feedback.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AAI Gateway

AAI Gateway is an MCP server that unifies MCP servers and Skill packages as Agent Apps for shared management across AI agents. It supports searching, importing, enabling, disabling, listing, and executing capabilities. Imported apps expose summaries and load operation details on demand, helping reduce repeated context while simplifying configuration.

Install AAI Gateway using the client-specific setup: run `claude mcp add --scope user --transport stdio aai-gateway -- npx -y aai-gateway` for Claude Code, `codex mcp add aai-gateway -- npx -y aai-gateway` for Codex, or add the documented local `aai-gateway` MCP configuration to OpenCode.

AAI Gateway provides tools for discovering and installing capabilities, importing MCP servers and Skill packages, listing registered Agent Apps, enabling or disabling apps per agent, removing apps, and executing tools within an Agent App. Its built-in tools include `search:discover`, `mcp:import`, `skill:import`, `listAllAaiApps`, `enableApp`, `disableApp`, `removeApp`, and `aai:exec`.

AAI Gateway reduces context usage by exposing fewer than 50 tokens of summary per Agent App and loading operation details on demand. The README contrasts this with injecting full schemas for every tool and describes the approach as providing 99% context token savings.

Yes. AAI Gateway manages MCP servers and Skill packages as Agent Apps, so importing one makes them available for use across AI agents. Apps can also be enabled or disabled per agent, allowing agent-specific control.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAAI Gateway AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aai-gateway?style=directory)](https://allmcps.com/mcp/aai-gateway)
HTML Embed
<a href="https://allmcps.com/mcp/aai-gateway"><img src="https://allmcps.com/api/badge/aai-gateway?style=directory" alt="AAI Gateway on AllMCPs" /></a>