{"repo":"cofin/litestar-mcp","free":true,"listed":false,"github":"https://github.com/cofin/litestar-mcp","clone":"git clone https://github.com/cofin/litestar-mcp.git","description":"Litestar plugin for Model Context Protocol (MCP) — expose route handlers as MCP tools and resources for AI agents.","language":"Python","stars":12,"topics":["ai","ai-agents","asgi","json-rpc","litestar","litestar-plugin","llm","mcp","model-context-protocol","oauth2"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Litestar MCP Plugin A lightweight plugin that integrates Litestar web applications with the Model Context Protocol (MCP) by exposing marked routes as MCP tools, resources, and prompts over MCP Streamable HTTP and JSON-RPC. Overview This plugin automatically discovers Litestar routes marked for MCP and exposes them through an MCP-native transport surface. Pass mcp tool=\"name\" , mcp resource=\"name\" , or mcp prompt=\"name\" straight through to @get / @post / etc. — Litestar funnels unknown kwargs into handler.opt , so no second decorator or opt={...} wrapper is needed. Standalone prompt callables that are not bound to an HTTP route can be registered through LitestarMCP(prompts=[...]) . Features - Protocol-Native Transport — MCP Streamable HTTP with JSON-RPC requests and SSE streams. - Three MCP Primitives — tools, resources, and prompts, with prompts/list and prompts/get driven by the same handler discovery as the rest of the surface. - Simple Route Marking — pass mcp tool / mcp resource / mcp prompt kwargs straight through to Litestar's route decorators, or register standalone prompts via LitestarMCP(prompts=[...]) . - RFC 6570 URI Templates — mcp resource template=\"app://…/{var}\" dispatches concrete URIs to handlers with extracted vars. - First-Class Descriptions — structured mcp description , mcp agent instructions , mcp when to use , mcp returns kwargs. - Type Safe — full type hints with dataclasses; msgspec -powered tool-argument validation. - Automatic Discovery — routes are","default_branch":null,"files":null,"tree":[],"storefront":"/r/cofin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cofin/litestar-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}