Aiohttp MCP Server

Tools for building Model Context Protocol (MCP) servers on top of aiohttp

Local serverstdioPython

What is the Aiohttp MCP Server?

Tools for building Model Context Protocol (MCP) servers on top of aiohttp

What you get

Implements the MCP protocol natively — no heavy SDK dependencies. Only 3 runtime dependencies: aiohttp, aiohttp-sse, pydantic.

  • Native MCP protocol implementation (supports specs 2025-11-25, 2025-06-18, 2025-03-26)
  • Streamable HTTP transport with SSE streaming
  • Easy integration with aiohttp web applications
  • Tool, Resource, and Prompt support with decorator-based registration
  • Shared state via ctx.app and per-request data via ctx.request
  • Stateless by default, with optional stateful mode for server push and resumability

What the assistant can call

Once Aiohttp is connected, these are the calls the assistant has available:

  • Async — first design with full type hints
  • ctx.request — aiohttp Request (headers, cookies, client IP)
  • ctx.app — aiohttp Application for shared state (ctx.app["db_pool"])
  • ctx.request_id — JSON-RPC request ID
  • aiohttp — sse >= 2.2.0, < 3.0.0

Configuration and credentials

  • Python 3.11 or higher - aiohttp >= 3.9.0, < 4.0.0 - aiohttp-sse >= 2.2.0, < 3.0.0 - pydantic >= 2.0.0, < 3.0.0

Recorded tools

  • ctx.request — aiohttp Request (headers, cookies, client IP)
  • ctx.app — aiohttp Application for shared state (ctx.app["db_pool"])
  • ctx.request_id — JSON-RPC request ID
  • aiohttp — sse >= 2.2.0, < 3.0.0

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ctx.requestaiohttp Request (headers, cookies, client IP)
ctx.appaiohttp Application for shared state (ctx.app["db_pool"])
ctx.request_idJSON-RPC request ID
aiohttpsse >= 2.2.0, < 3.0.0

How to install the Aiohttp MCP Server

{
  "mcpServers": {
    "aiohttp": {
      "command": "uvx",
      "args": ["aiohttp-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11 or higher - aiohttp >= 3.9.0, < 4.0.0 - aiohttp-sse >= 2.2.0, < 3.0.0 - pydantic >= 2.0.0, < 3.0.0

Example prompts to try

  • “Use Aiohttp to Async.”
  • “Use Aiohttp to ctx.request.”
  • “Use Aiohttp to ctx.app.”

Frequently asked questions

Tools for building Model Context Protocol (MCP) servers on top of aiohttp Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.