MCP YAML API

by molavec

Integrations

  • Supports environment variable interpolation for API tokens and sensitive data through .env files, allowing secure storage of credentials used in API configurations.

  • Provides installation through the npm package registry with global installation support via 'npm install -g mcp-yaml-api'.

  • Enables defining and configuring multiple API endpoints using YAML syntax, supporting various HTTP methods, parameter generation, and request configurations.

MCP YAML API

YAML 파일에 정의된 API 구성에서 도구를 생성하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 사용하면 YAML 구성 파일에 API 엔드포인트를 정의하는 것만으로 MCP 도구를 생성할 수 있으므로 외부 API를 MCP 생태계에 쉽게 통합할 수 있습니다.

특징

  • YAML을 사용하여 여러 API 엔드포인트 구성
  • 모든 HTTP 메서드(GET, POST, PATCH, PUT, DELETE)를 지원합니다.
  • 민감한 데이터에 대한 환경 변수 보간
  • URL 템플릿에서 자동 매개변수 생성
  • 도구 생성을 위한 팩토리 패턴
  • 전체 MCP 서버 구현

설치

지엑스피1

구성

프로젝트에 api.yaml 파일을 만듭니다.

apis: getUser: url: https://api.example.com/users/{id} method: GET api-token: ${API_TOKEN} content: headers: Accept: application/json

API 토큰에 대한 .env 파일을 만듭니다.

API_TOKEN=your_api_token_here

용법

MCP 서버를 실행합니다.

mcp-yaml-api

서버는 api.yaml 파일에 정의된 각 API 엔드포인트에 대한 MCP 도구를 생성합니다.

YAML 구성

YAML 파일의 각 API 엔드포인트에는 다음이 있어야 합니다.

  • url : 엔드포인트 URL( {id} 와 같은 경로 매개변수 지원)
  • method : HTTP 메서드(GET, POST, PATCH, PUT, DELETE)
  • api-token : API 토큰(환경 변수 지원)
  • content : 요청 구성
    • headers : 요청 헤더
    • body : 요청 본문 스키마(POST, PUT, PATCH용)

구성 예

모든 HTTP 메서드가 포함된 전체 예는 api.yaml 참조하세요.

기여하다

  1. 저장소를 포크하세요
  2. 기능 브랜치를 생성하세요
  3. 변경 사항을 커밋하세요
  4. 지점으로 밀어 넣기
  5. 새로운 풀 리퀘스트 만들기

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

YAML 파일에 정의된 API 구성에서 도구를 생성하는 모델 컨텍스트 프로토콜 서버로, 코딩 없이 외부 API를 MCP 생태계에 쉽게 통합할 수 있습니다.

  1. 특징
    1. 설치
      1. 구성
        1. 용법
          1. YAML 구성
            1. 구성 예
              1. 기여하다
                1. 특허

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.
                    Last updated -
                    4
                    3
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.
                    Last updated -
                    13
                    2
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
                    Last updated -
                    2
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that exposes over 200+ APIs from API.market as MCP resources, allowing large language models to discover and interact with various APIs through natural language commands.
                    Last updated -
                    111
                    2
                    TypeScript
                    MIT License
                    • Apple

                  View all related MCP servers

                  ID: 01spoor8mp