Skip to main content
Glama
FastMCP Server

FastMCP Server

by legotec73

FastMCP Server

Python FastMCP (Model Context Protocol) server with Bearer Token authentication

How to Run

Run Locally

pip install -r requirements.txt
python server.py

Run with Docker

docker build -t fastmcp .
docker run -p 8000:8000 -e FASTMCP_AUTH_TOKEN=your-secret-token fastmcp

Related MCP server: MCP Server Node

Deployment

Cloudtype

  1. Select Template: FastMCP

  1. Deploy

  • Python 3.12

  • Environment Variables FASTMCP_AUTH_TOKEN: Set the token used for authentication (token used during authentication)

  • Start Command uvicorn server:app --host 0.0.0.0 --port 8000

  1. Connection Information

    MCP connection address - https:///mcp

  1. Updates After committing and pushing code, deploy via the Deploy button in the Settings tab.

YouTube Guide

Deployment Automation

Authentication

Uses Bearer Token authentication:

  • Environment Variable: FASTMCP_AUTH_TOKEN

  • Header: Authorization: Bearer your-token

Supported Tools

  • create_task: Create a task

  • complete_task: Complete a task

  • list_tasks: Retrieve the list of tasks

Environment Variables

  • FASTMCP_AUTH_TOKEN: Bearer Token (Required)

  • FASTMCP_HOST: Server host (Optional/Default: 0.0.0.0)

  • FASTMCP_PORT: Server port (Optional/Default: 8000)

How to Use

Porter AI

Troubleshooting

License

MIT License

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

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Node.js MCP server example with user management, task management, and calculator tools. Supports authentication via bearer token and can be deployed locally or via Docker.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Node.js MCP server with user, task, and calculator tools. Supports Bearer token authentication and Docker/Cloudtype deployment.
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      A task manager MCP server that enables creating, reading, updating, and deleting tasks persisted in a local JSON file.
      4
      -