Skip to main content
Glama
server.py1.11 kB
from mcp.server.fastmcp import FastMCP import sys import logging # Import modular components from src.client import MuseScoreClient from src.tools import ( setup_connection_tools, setup_navigation_tools, setup_notes_measures_tools, setup_staff_instruments_tools, setup_time_tempo_tools, setup_sequence_tools ) # Set up logging logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', handlers=[logging.StreamHandler(sys.stderr)] ) logger = logging.getLogger("MuseScoreMCP") # Create the MCP app and client mcp = FastMCP("MuseScore Assistant") client = MuseScoreClient() # Setup all tool categories setup_connection_tools(mcp, client) setup_navigation_tools(mcp, client) setup_notes_measures_tools(mcp, client) setup_staff_instruments_tools(mcp, client) setup_time_tempo_tools(mcp, client) setup_sequence_tools(mcp, client) # Main entry point if __name__ == "__main__": sys.stderr.write("MuseScore MCP Server starting up...\n") sys.stderr.flush() logger.info("MuseScore MCP Server is running") mcp.run()

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/ghchen99/mcp-musescore'

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