> For the complete documentation index, see [llms.txt](https://docs.interactive.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.interactive.ai/cli/iai_mcps.md).

# iai mcps

Deploy and manage MCP servers

## Synopsis

Manage MCP servers for a project — self-hosted servers deployed in the platform, or remote servers hosted outside the platform: a custom URL or a catalog-backed provider whose URL and auth come from the curated catalog.

Attach an mcp to an agent with '--mcp ' on 'iai agents create'/'update'.

## Options

```
  -h, --help                  help for mcps
  -o, --organization string   Organization name that owns the project
  -p, --project string        Project name that owns the mcps
```

## Options inherited from parent commands

```
      --api-key string               API key for authentication
      --cfg-file string              Path to YAML config file with organization, project, and optional service definitions
      --deployment-hostname string   Hostname for the deployment API (default "https://deployment.interactive.ai")
      --hostname string              Hostname for the API (default "https://app.interactive.ai")
```

## SEE ALSO

* [iai](/cli/iai.md) - InteractiveAI's CLI
* [iai mcps activate](/cli/iai_mcps_activate.md) - Activate a deactivated mcp in a project
* [iai mcps catalog](/cli/iai_mcps_catalog.md) - Browse the MCP catalog
* [iai mcps connect](/cli/iai_mcps_connect.md) - Sign in to an mcp that authenticates with your account
* [iai mcps create](/cli/iai_mcps_create.md) - Create an mcp in a project
* [iai mcps deactivate](/cli/iai_mcps_deactivate.md) - Deactivate an mcp in a project
* [iai mcps delete](/cli/iai_mcps_delete.md) - Delete an mcp
* [iai mcps describe](/cli/iai_mcps_describe.md) - Show mcp details, verify state, and cached tools
* [iai mcps diff](/cli/iai_mcps_diff.md) - Compare two revisions of an mcp
* [iai mcps disconnect](/cli/iai_mcps_disconnect.md) - Forget an mcp's stored provider credential
* [iai mcps list](/cli/iai_mcps_list.md) - List mcps in a project
* [iai mcps log-fields](/cli/iai_mcps_log-fields.md) - List available fields in structured logs
* [iai mcps logs](/cli/iai_mcps_logs.md) - Show logs for an mcp
* [iai mcps port-forward](/cli/iai_mcps_port-forward.md) - Forward a local port to an mcp
* [iai mcps restart](/cli/iai_mcps_restart.md) - Restart an mcp in a project
* [iai mcps revisions](/cli/iai_mcps_revisions.md) - List revisions of an mcp
* [iai mcps run-tool](/cli/iai_mcps_run-tool.md) - Run a tool on an mcp
* [iai mcps tools](/cli/iai_mcps_tools.md) - List an mcp's cached tools with descriptions
* [iai mcps update](/cli/iai_mcps_update.md) - Update an mcp in a project
* [iai mcps verify](/cli/iai_mcps_verify.md) - Re-verify an mcp and refresh its cached tools


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.interactive.ai/cli/iai_mcps.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
