Skip to main content
Glama

Express MCP Server Echo

by jhgaylor

익스프레스 MCP 서버

Express와 TypeScript로 구축된 상태 비저장 모델 컨텍스트 프로토콜(MCP) 서버입니다.

특징

  • 최신 Streamable HTTP 전송을 통한 상태 비저장 MCP 서버 구현
  • 유형 안전을 위한 TypeScript
  • HTTP 처리를 위한 Express.js

요구 사항

  • 노드.js 18+
  • npm 또는 yarn

설치

지엑스피1

개발

# Build the TypeScript code npm run build # Run in development mode with auto-reloading npm run dev # Run tests (when added) npm test

서버 구조

src/ ├── index.ts # Main application entry point └── server.ts # MCP server definition with resource, tool, and prompt

사용 가능한 기능

이 서버는 세 가지 MCP 구성 요소를 사용하여 간단한 에코 엔드포인트를 구현합니다.

  • 리소스 : echo://{message} - 메시지를 리소스로 반환합니다.
  • 도구 : echo - 제공된 메시지를 도구 응답으로 다시 에코합니다.
  • 프롬프트 : echo - 제공된 메시지로 사용자 프롬프트를 생성합니다.

MCP 프로토콜

이 서버는 LLM이 외부 데이터 및 기능과 상호 작용하는 표준화된 방식인 모델 컨텍스트 프로토콜 (MCP)을 구현합니다. JSON-RPC 요청에 응답하는 상태 비저장 API 엔드포인트를 제공합니다.

API 사용

JSON-RPC 페이로드를 사용하여 /mcp 에 POST 요청을 보냅니다.

초기화
curl -X POST http://localhost:3001/mcp \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "Accept: text/event-stream" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": "2024-11-05", "capabilities": { "roots": { "listChanged": true }, "sampling": {} }, "clientInfo": { "name": "ExampleClient", "version": "1.0.0" } } }'
에코 도구 호출
curl -X POST http://localhost:3001/mcp \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "Accept: text/event-stream" \ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "echo", "arguments": { "message": "Hello, World!" } }, "id": 1 }'

특허

아이에스씨

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

리소스, 도구 및 프롬프트 구성 요소를 사용하여 간단한 에코 기능을 구현하는 상태 비저장 모델 컨텍스트 프로토콜 서버로, LLM이 표준화된 MCP 상호 작용을 통해 메시지를 에코 백할 수 있도록 합니다.

  1. 특징
    1. 요구 사항
      1. 설치
        1. 개발
          1. 서버 구조
            1. 사용 가능한 기능
              1. MCP 프로토콜
                1. API 사용
              2. 특허

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.
                  Last updated -
                  Python
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.
                  Last updated -
                  31
                  323
                  2
                  TypeScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  An educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server for integrating with various LLM clients like Claude Desktop.
                  Last updated -
                  1
                  88
                  Python
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  A simple server implementing the Model Context Protocol (MCP) that echoes messages back, designed for testing MCP clients.
                  Last updated -
                  1
                  Python
                  MIT License

                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/jhgaylor/express-mcp-server-echo'

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