Skip to main content
Glama

MCP Spotify

by yhwancha

Iniciador de TypeScript del servidor MCP

Esta es una plantilla de inicio para crear un servidor MCP (Protocolo de Contexto de Modelo) con TypeScript. Proporciona una configuración básica con una herramienta de ejemplo para ayudarte a empezar a construir tu propio servidor MCP.

Características

  • Configuración de TypeScript
  • Configuración básica del servidor MCP
  • Implementación de la herramienta de muestra
  • Entorno de desarrollo con seguridad de tipos

Empezando

Siga estos pasos para crear su propio servidor MCP:

# Create a new directory for your project mkdir <project_name> cd <project_name> # Initialize a new npm project npm init -y # Install dependencies npm install @modelcontextprotocol/sdk zod npm install -D @types/node typescript # Create source directory and main file mkdir src touch src/index.ts

Estructura del proyecto

. ├── src/ │ └── index.ts # Main server implementation ├── package.json # Project dependencies and scripts └── tsconfig.json # TypeScript configuration

Desarrollo

  1. Implemente sus herramientas en src/index.ts
  2. Construir el proyecto:
    npm run build

Agregar nuevas herramientas

Para agregar una nueva herramienta, utilice el método server.tool() . Ejemplo:

server.tool( "tool-name", "tool-description", { // Define your tool's parameters using Zod schema param: z.string().describe("parameter description") }, async ({ param }) => { // Implement your tool logic here return { content: [ { type: "text", text: `Tool executed with parameter: ${param}`, }, ], }; }, );

Configuración del servidor MCP

Puedes configurar varios servidores MCP en tu proyecto. A continuación, un ejemplo de configuración:

{ "mcpServers": { "<server_name>": { "command": "<command>", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/<project_name>", "run", "<script_name>" ] } } }

Esta configuración especifica:

  • <server_name> : Un identificador único para su servidor MCP
  • command : El comando para ejecutar su script (por ejemplo, python , node , uv )
  • args : una matriz de argumentos de línea de comandos
    • --directory : Establece el directorio de trabajo para el script
    • Otros argumentos específicos para sus necesidades de comando y script

Puede configurar varios servidores agregando más entradas al objeto mcpServers .

Licencia

ISC# venmo-mcp

mcp-spotify

-
security - not tested
-
license - not tested
-
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.

Una plantilla de servidor MCP que probablemente permite la interacción con la API de Spotify, permitiendo a los usuarios realizar operaciones relacionadas con Spotify a través de comandos de lenguaje natural.

  1. Características
    1. Empezando
      1. Estructura del proyecto
        1. Desarrollo
          1. Agregar nuevas herramientas
            1. Configuración del servidor MCP
              1. Licencia
                1. mcp-spotify

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    Enables interaction with Spotify's music catalog via the Spotify Web API, supporting searches, artist information retrieval, playlist management, and automatic token handling.
                    Last updated -
                    26
                    547
                    2
                    TypeScript
                    MIT License
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A FastMCP tool that enables control of Spotify through natural language commands in Cursor Composer, allowing users to manage playback, search for content, and interact with playlists.
                    Last updated -
                    21
                    1
                    Python
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A lightweight Model Context Protocol server that enables AI assistants like Cursor & Claude to control Spotify playback and manage playlists.
                    Last updated -
                    12
                    80
                    TypeScript
                  • -
                    security
                    -
                    license
                    -
                    quality
                    A Model Context Protocol server that enables controlling Spotify playback through natural language commands in MCP clients like Cursor or Claude for Desktop.
                    Last updated -
                    1
                    TypeScript

                  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/yhwancha/mcp-spotify'

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