litestar-mcp

Installation
SKILL.md

litestar-mcp

litestar-mcp exposes Litestar route handlers as Model Context Protocol (MCP) tools and resources over JSON-RPC 2.0. The plugin discovers routes via the Litestar OpenAPI schema and serves them at POST /mcp/ (configurable).

GET handlers become resources (read-only); POST/PUT/PATCH/DELETE handlers become tools (mutations). Per-route overrides via @mcp_tool, @mcp_resource, or opt={...} dicts.

Code Style Rules

  • PEP 604 unions: T | None, never Optional[T]
  • Consumer Litestar app modules MAY use from __future__ import annotations
  • Async all I/O — handlers exposed via MCP must be async def

Quick Reference

Install

pip install litestar-mcp
Installs
2
GitHub Stars
8
First Seen
May 18, 2026
litestar-mcp — litestar-org/litestar-skills