Skip to main content
Glama

Country MCP Server

by pai-bh

MCP(模型上下文协议)教程

📚 学习步骤

步骤 0:理解 MCP

  • MCP概念和结构
    • 了解资源、工具和提示
    • 了解 MCP 服务器、主机和客户端
    • MCP 与传统 API 对比
    • 了解通信协议

步骤 1:使用 MCP 检查器

  • 使用 Inspector 进行测试
    • 基本服务器实现(examples/country_server/country_server.py)
    • 如何使用检查器
    • 会话管理和通信方法

步骤2:外部服务集成

  • Google 日历集成(正在进行中)
  • Slack 集成(正在进行中)
  • Figma 集成(正在进行中)

🚀 开始

  • 使用的外部库是 fastmcp 和 mcp-agent。

偏好设置

# Poetry 설치 (필요한 경우) curl -sSL https://install.python-poetry.org | python3 - # 프로젝트 의존성 설치 poetry install # 가상환경 활성화 poetry shell

运行基本服务器

mcp dev examples/country_server/country_server.py

📁 项目结构(草案)

. ├── docs/ │ ├── 00_MCP란?.md │ └── 01_MCP inspector를 활용한 테스트.md ├── examples/country_server/country_server.py # 기본 MCP 서버 예제 ├── country_client.py # Python 클라이언트 예제 ├── pyproject.toml # 의존성 관리 └── README.md

🔗 参考文献

公文

社区资源

额外的学习材料

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

提供国家信息的教程 MCP 服务器实现,演示了用于构建具有外部服务集成功能的 AI 驱动应用程序的模型上下文协议。

  1. 📚 学习步骤
    1. 步骤 0:理解 MCP
    2. 步骤 1:使用 MCP 检查器
    3. 步骤2:外部服务集成
  2. 🚀 开始
    1. 偏好设置
    2. 运行基本服务器
  3. 📁 项目结构(草案)
    1. 🔗 参考文献
      1. 公文
      2. 社区资源
      3. 额外的学习材料

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A framework to use with AI to easily create a server for any service. Just drop the API Documentation in it and ask to create the MCP.
      Last updated -
      4
      TypeScript
      MIT License
    • -
      security
      F
      license
      -
      quality
      A generic Model Context Protocol framework for building AI-powered applications that provides standardized ways to create MCP servers and clients for integrating LLMs with support for Ollama and Supabase.
      Last updated -
      TypeScript
    • -
      security
      F
      license
      -
      quality
      Implements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.
      Last updated -
      90
      Python
      • Apple
      • Linux

    View all related MCP servers

    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/pai-bh/mcp-tutorial'

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