MCP-YNU FastMCP Server
OfficialMCP-YNU - Servidor FastMCP
Una implementación de servidor MCP dinámico que utiliza FastMCP que carga automáticamente herramientas, recursos y avisos desde los directorios respectivos.
Características
Carga dinámica de módulos desde los directorios
tools/,resources/yprompts/Descubrimiento y registro automático de módulos
Configuración sencilla y extensibilidad
Sugerencias de tipo para una mejor claridad del código y análisis estático
Registro completo para supervisar la actividad del servidor
Related MCP server: Netmex MCP
Actualizaciones recientes
Se agregaron sugerencias de tipo en todo el código base
Manejo mejorado de instancias de MCP
Se agregó funcionalidad de registro
Se agregó licencia MIT
Documentación actualizada con enlaces de referencia
Estructura del directorio
mcp-ynu/
├── tools/ # Directory for tool modules
│ ├── __init__.py
│ ├── example.py
├── resources/ # Directory for resource modules
│ ├── __init__.py
│ ├── example.py
├── prompts/ # Directory for prompt modules
│ ├── __init__.py
│ ├── example.py
├── logger.py # Logger implementation
├── main.py # Main implementation
├── mcp_server.py # MCP server implementation
├── README.md # Project documentation
├── LICENSE # MIT License
└── pyproject.toml # Project configurationUso
Crear módulos en los directorios apropiados
Importar mcp mediante
from mcp_server import mcpEjecutar el servidor:
python main.pyMódulos de ejemplo
Ejemplo de módulo de herramientas (tools/example.py)
from mcp_server import mcp
import httpx
@mcp.tool()
def calculate_bmi(weight_kg: float, height_m: float) -> float:
"""Calculate BMI given weight in kg and height in meters"""
return weight_kg / (height_m**2)
@mcp.tool()
async def fetch_weather(city: str) -> str:
"""Fetch current weather for a city"""
async with httpx.AsyncClient() as client:
response = await client.get(f"https://api.weather.com/{city}")
return response.textEjemplo de módulo de recursos (resources/example.py)
from mcp_server import mcp
@mcp.resource("config://app")
def get_config() -> str:
"""Static configuration data"""
return "App configuration here"
@mcp.resource("users://{user_id}/profile")
def get_user_profile(user_id: str) -> str:
"""Dynamic user data"""
return f"Profile data for user {user_id}"Ejemplo de módulo de indicaciones (prompts/example.py)
from mcp_server import mcp
from mcp.server.fastmcp.prompts import base
@mcp.prompt()
def review_code(code: str) -> str:
return f"Please review this code:\n\n{code}"
@mcp.prompt()
def debug_error(error: str) -> list[base.Message]:
return [
base.UserMessage("I'm seeing this error:"),
base.UserMessage(error),
base.AssistantMessage("I'll help debug that. What have you tried so far?"),
]Depuración
Actualice
MCP_TRANSPORT_TYPEen.env, ejecutepython main.pypara iniciar el servidor mcpEjecute
npx @modelcontextprotocol/inspectorpara abrir la inspección .Elija el tipo de transporte
SSEcon la URLhttp://localhost:<mcp_server_port>/sseo elija el tipo de transporteSTDIOcon el comandopythony los argumentos/path/to/main.py

Requisitos
Python >= 3.10
FastMCP
Enlaces de referencia
Licencia
Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.
This server cannot be installed
Maintenance
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
- Flicense-qualityDmaintenanceA basic MCP server template that provides a foundation for building custom tools, resources, and prompts. Serves as a starting point for developers to create their own MCP server functionality.

Netmex MCPofficial
AlicenseCqualityDmaintenanceA lightweight and extendable MCP server toolkit that allows developers to build and integrate custom tools with AI assistants through automatic tool discovery from local directories or npm packages.28MIT- Alicense-qualityDmaintenanceA minimal template MCP server demonstrating basic tools, resources, and prompts functionality. Includes example implementations like a hello tool, history resource, and greet prompt for learning MCP development.4ISC
- Flicense-qualityDmaintenanceA template/starter project for building MCP servers with structured directories for tools, prompts, and resources that are automatically discovered and registered.5
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
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/ynu/mcp-ynu'
If you have feedback or need assistance with the MCP directory API, please join our Discord server