Back to Home
Nabeelshar icon

fastapi-mcp-server

Verified Safe

by Nabeelshar

Overview

Enables AI assistants to introspect and analyze FastAPI applications for API discovery, documentation, and debugging.

Installation

Run Command
python -m fastapi_mcp_server.server

Security Notes

The server's `load_app` function dynamically imports Python modules using `__import__` based on a provided `app_path`. While this is fundamental to its introspection purpose, it means the server's execution environment (`cwd` and `app_path`) must be trusted. If an attacker could control these inputs or the current working directory contains malicious code, arbitrary code execution could occur. However, given its intended use as a local developer tool, run by the user within their own project, this is an acceptable risk for its functionality. No hardcoded secrets, `eval`, `exec`, or direct network listener vulnerabilities were found in the provided code.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-13

Tags

FastAPIAPI IntrospectionAI Assistant ToolDeveloper ToolMCP Server