flask-mcp-server
Flask MCP server
A small MCP server so an AI assistant can start/stop a Flask app and ask a few AWS questions.
This is a learning project. It is not an enterprise platform.
There is also a Flask dashboard under aws-cost-optimizer/ that lists AWS resources and estimated spend. Those numbers come from the account it is pointed at. Do not treat the screenshot as a product claim.
What it can do
Tool | What it does |
| Start the Flask app |
| Stop it |
| Is it running? |
| List Flask routes |
| Hit one endpoint |
| Show logs |
| List a few AWS resources |
Setup
Copy .env.example to .env and fill in:
FLASK_APP_PATH=/path/to/your/flask/app
AWS_REGION=us-west-2
FLASK_HOST=127.0.0.1
FLASK_PORT=5000Point Claude Desktop (or any MCP client) at flask_app_mcp.py:
{
"mcpServers": {
"flask-mcp-server": {
"command": "python",
"args": ["/full/path/to/flask_app_mcp.py"],
"env": {
"AWS_REGION": "us-west-2"
}
}
}
}Layout
flask_app_mcp.py MCP server
start_flask.py helper
aws-cost-optimizer/ Flask dashboardMIT License
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/arthurperch/flask-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server