Skip to main content
Glama
flask-mcp-native

flask-mcp-native

by nazil561

flask-mcp-native

Expose a Flask application as an MCP server with one line of code.

PyPI version Python versions License tests

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

fastapi-mcp (FastAPI)

flask-mcp-native (Flask)

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-native

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Automatically 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
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Automatically converts Python web backends (FastAPI, Flask, Django) into MCP servers by exposing API routes as MCP tools with near-zero boilerplate.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Flask-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.
      9
      Apache 2.0