flask-mcp-native
Exposes Flask application routes as MCP tools, with automatic route discovery and typed arguments derived from URL converters.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
flask-mcp-native
Expose a Flask application as an MCP server with one line of code.
Status: v0.1.0 — early release. Core is tested. See Limitations before production use.
Why this exists
The Model Context Protocol (MCP) lets AI agents call your application's functions as tools. FastAPI got its integration first — fastapi-mcp has 11k+ stars. Flask did not.
Feature |
|
|
Route auto-discovery | ✅ | ✅ |
Typed tool arguments | ✅ | ✅ (from URL converters) |
stdio transport | ✅ | ✅ |
HTTP/SSE transport | ✅ | 🔜 roadmap |
Auth | ✅ | 🔜 roadmap |
Framework | FastAPI (ASGI) | Flask (WSGI) |
The alternative was: migrate to FastAPI, or hand-write an MCP server duplicating every route. This is the third option — keep Flask, get MCP.
Related MCP server: backend2mcp
Installation
pip install flask-mcp-nativeTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAutomatically converts Swagger/OpenAPI specifications into MCP servers, enabling AI agents to interact with any REST API through natural language by exposing endpoints as AI-friendly tools.3-
- AlicenseNot gradedqualityCmaintenanceAutomatically converts Python web backends (FastAPI, Flask, Django) into MCP servers by exposing API routes as MCP tools with near-zero boilerplate.1MIT
- AlicenseNot gradedqualityDmaintenanceFlask-MCP-Plus enables developers to create MCP servers using Flask, with support for defining tools, resources, and prompts with automatic schema generation and type safety.9Apache 2.0
- AlicenseNot gradedqualityBmaintenanceFlask Extension for apcore (AI-Perceivable Core) integration. Expose your Flask routes as MCP tools with auto-discovery, Pydantic schema inference, and built-in observability.Apache 2.0