Skip to main content
Glama
legotec73

FastMCP Server

by legotec73

FastMCP Server

Python FastMCP (Model Context Protocol) 服务器带 Bearer Token 认证

运行方法

本地运行

pip install -r requirements.txt
python server.py

Docker 运行

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

Related MCP server: MCP Server Node

部署

클라우드타입

  1. 选择模板FastMCP

  1. 部署

  • Python 3.12

  • 环境变量 FASTMCP_AUTH_TOKEN : 设置用于认证的令牌(认证时使用的令牌)

  • 启动命令 uvicorn server:app --host 0.0.0.0 --port 8000

  1. 确认连接信息

    MCP 连接地址 - https://<已部署的预览域名地址>/mcp

  1. 更新 代码提交并推送后,在 设置 选项卡中点击 部署 按钮进行部署

YouTube 指南

部署自动化

认证

使用 Bearer 令牌认证:

  • 环境变量:FASTMCP_AUTH_TOKEN

  • 请求头:Authorization: Bearer your-token

支持的工具

  • create_task:创建任务

  • complete_task:完成任务

  • list_tasks:查看任务列表

环境变量

  • FASTMCP_AUTH_TOKEN : Bearer 令牌(必需

  • FASTMCP_HOST : 服务器主机(可选/默认:0.0.0.0)

  • FASTMCP_PORT : 服务器端口(可选/默认:8000)

使用方法

Porter AI

问题解决

许可证

MIT License

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    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.
    7
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A lightweight task management MCP server that enables CRUD operations on tasks stored in a single JSON file, including listing, creating, updating progress, and setting priorities.
    133
  • A
    license
    Not graded
    quality
    C
    maintenance
    A Node.js MCP server with user, task, and calculator tools. Supports Bearer token authentication and Docker/Cloudtype deployment.
    7
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/legotec73/FastMCPserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server