# aspire agent mcp command

## Name

`aspire agent mcp` - Start the <abbr title="Model Context Protocol" data-tooltip-placement="top">MCP</abbr> (Model Context Protocol) server.

## Synopsis

```bash title="Aspire CLI"
aspire agent mcp [options]
```

<AsciinemaPlayer
  src="/casts/aspire-agent-mcp.cast"
  poster="npt:0:01"
  rows={39}
  loop={false}
  speed={.5}
/>

## Description

The `aspire agent mcp` command starts the MCP (Model Context Protocol) server, which enables AI assistants and development tools to interact with your Aspire AppHost. The MCP server provides a standardized interface for resource management, diagnostics, and observability operations.

When the server is running, MCP-compatible clients can connect to it to:

- List and manage Aspire resources
- View structured logs and traces
- Execute resource commands (start, stop, restart)
- Query integration information

## Options

The following options are available:

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />

## Examples

- Start the MCP server:

  ```bash title="Aspire CLI"
  aspire agent mcp
  ```

## See also

- [aspire agent command](../aspire-agent/)
- [aspire agent init command](../aspire-agent-init/)