# core/mcp_instance.py
"""
Shared FastMCP instance - single source of truth for all tools.
This module provides a global MCP server instance that all tools
register themselves to. This ensures:
- Single coherent namespace for all tools
- One protocol endpoint for Cursor/Claude to discover
- Consistent tool registration pattern
"""
from mcp.server.fastmcp import FastMCP
# Shared global instance for all tools
# All tools will use @mcp.tool() decorator from this instance
mcp = FastMCP("mcp-server")
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/iKwesi/AIE8-MCP-Session'
If you have feedback or need assistance with the MCP directory API, please join our Discord server