"""
Freepik FastMCP Server - Main Entry Point
A professionally structured MCP server for Freepik API integration.
Built with Domain-Driven Design principles for maintainability and clarity.
"""
from src.application.server_factory import ServerFactory
# Create the server instance using factory pattern
# This needs to be a module-level variable for FastMCP to find it
try:
print("š Initializing Freepik FastMCP Server...")
mcp = ServerFactory.create_server()
print("ā Server factory initialized successfully")
except Exception as e:
print(f"ā Failed to initialize server: {e}")
raise
def main() -> None:
"""Main entry point for the Freepik FastMCP server."""
try:
print("š Ready to accept MCP connections")
# Run the server
mcp.run(transport="stdio")
except Exception as e:
print(f"ā Failed to run server: {e}")
raise
if __name__ == "__main__":
main()
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/freepik-company/freepik-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server