Skip to main content
Glama

MCP Spotify

by yhwancha

MCP サーバー TypeScript スターター

これは、TypeScriptを使用してモデルコンテキストプロトコル(MCP)サーバーを作成するためのスターターテンプレートです。サンプルツールの実装を含む基本的なセットアップが提供されており、独自のMCPサーバーの構築を始めるのに役立ちます。

特徴

  • TypeScriptの設定
  • 基本的なMCPサーバーのセットアップ
  • サンプルツールの実装
  • 型安全な開発環境

はじめる

独自の 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

プロジェクト構造

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

発達

  1. src/index.tsにツールを実装する
  2. プロジェクトをビルドします。
    npm run build

新しいツールの追加

新しいツールを追加するには、 server.tool()メソッドを使用します。例:

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}`, }, ], }; }, );

MCP サーバーの構成

プロジェクト内に複数のMCPサーバーを設定できます。設定例を以下に示します。

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

この構成では以下を指定します。

  • <server_name> : MCPサーバーの一意の識別子
  • command : スクリプトを実行するコマンド (例: pythonnodeuv )
  • args : コマンドライン引数の配列
    • --directory : スクリプトの作業ディレクトリを設定します
    • コマンドとスクリプトのニーズに固有のその他の引数

mcpServersオブジェクトにエントリを追加することで、複数のサーバーを構成できます。

ライセンス

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.

Spotify の API とのやり取りを可能にし、ユーザーが自然言語コマンドを通じて Spotify 関連の操作を実行できるようにする MCP サーバー テンプレート。

  1. 特徴
    1. はじめる
      1. プロジェクト構造
        1. 発達
          1. 新しいツールの追加
            1. MCP サーバーの構成
              1. ライセンス
                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