MI

modelcontextprotocol/inspector

Developer tools공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

1.1만 stars 1.6천 forks 품질 69 트렌드 63NOASSERTION

MCP 서버를 위한 시각적 테스트 도구

개요

MCP 인스펙터는 MCP 서버를 테스트하고 디버깅하기 위한 개발자 도구입니다. MCP 인스펙터는 함께 작동하는 두 가지 주요 구성 요소로 구성됩니다: - : MCP 서버 테스트 및 디버깅을 위한 인터랙티브 인터페이스를 제공하는 React 기반 웹 UI - : 프로토콜 브리지 역할을 하는 Node.js 서버로, 다양한 전송 수단(stdio, SSE, streamable-http)을 통해 웹 UI와 MCP 서버를 연결합니다. 프록시는 트래픽을 가로채는 네트워크 프록시가 아닙니다. 대신, MCP 클라이언트(MCP 서버에 연결)와 HTTP 서버(웹 UI를 담당)로서 기능하며, 서로 다른 전송 프로토콜을 사용하는 MCP 서버와 브라우저 기반 상호작용을 가능하게 합니다. UI를 바로 실행하려면 다음 동작을 실행하세요: 서버가 시작되고 UI는 [[T0]에서 접근 가능합니다. 다음 명령어로 Docker 컨테이너에서 시작할 수도 있습니다: MCP 서버 구현을 검사하려면 이 저장소를 복제할 필요가 없습니다.

개요(AI 번역)

모델 컨텍스트 프로토콜(MCP) 서버를 검사하는 개발자용 도구입니다. 단일 패키지 [@modelcontextprotocol/inspector로 제공되며, 서버를 검사하는 네 가지 방법을 제공합니다:

  • Web — Node 백엔드를 가진 Vite + React + Mantine 단일 페이지 앱입니다.
  • CLI — 자동화, CI, 빠른 에이전트 피드백 루프를 위한 스크립트 가능한 명령줄 클라이언트.
  • TUI — Ink로 만든 인터랙티브 터미널 UI.
  • mcpdo (experimental) — 연결 CLI: 한 번 연결한 후, 암묵적인 로컬 데몬을 통해 지정된 연결된 연결에 대해 여러 명령을 실행합니다. clients/mcpdo를 참조하세요.

처음 세 개는 하나의 전역 mcp-inspector 바이너리를 통해 실행됩니다; mcpdo는 같은 패키지 내 두 번째 바이너리입니다:

[! 경고] 인스펙터는 비밀 — OAuth 토큰, OAuth 클라이언트 비밀, stdio env: 값 — 을 관리하며, 가능하면 기본적으로 OS 키체인에 저장합니다. 키체인이 없는 기기 — libsecret이나 Secret Service가 없는 Linux, 헤드리스 및 SSH 세션, Termux, 마운트된 볼륨이 있는 컨테이너 — 에서는 키를 제공하지 않는 한 암호화되지 않은 채 ~/.mcp-inspector/secrets.json에 저장됩니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Inspector

A developer tool for inspecting Model Context Protocol (MCP) servers. It ships as a single package, @modelcontextprotocol/inspector, that provides four ways to inspect a server:

  • Web — a Vite + React + Mantine single-page app with a Node backend.
  • CLI — a scriptable command-line client for automation, CI, and fast agent feedback loops.
  • TUI — an interactive terminal UI built with Ink.
  • mcpdo (experimental) — a connection CLI: connect once, then run many commands against the named connection through an implicit local daemon. See clients/mcpdo.

The first three run through one global mcp-inspector binary; mcpdo is a second binary in the same package:

npx @modelcontextprotocol/inspector                   # web UI (default)
npx @modelcontextprotocol/inspector --cli             # CLI
npx @modelcontextprotocol/inspector --tui             # TUI
npx -p @modelcontextprotocol/inspector mcpdo --help   # mcpdo

[!WARNING] The Inspector manages secrets — OAuth tokens, OAuth client secrets, and stdio env: values — and stores them in the OS keychain, if available, by default. On a machine with no keychain — Linux without libsecret or a Secret Service, headless and SSH sessions, Termux, and containers with a mounted volume — they are saved to ~/.mcp-inspector/secrets.json instead, unencrypted unless you supply a key. See Where secrets are stored for how to get a keychain back, encrypt the file, or keep secrets in memory only.

Upgrading from v1? Read the v1 → v2 migration guide — CLI flags, the new --config vs. --catalog split, the Node engine bump, and what no longer ships.

Repo status. This is the v2 line of the Inspector. Active development happens on v2/main (the develop branch — all v2 PRs target it), which is merged into main at milestone releases; main is the default branch and holds the latest released v2, published to the npm latest tag. The legacy v1 line lives on v1/main — security fixes only, published straight from that branch to the npm v1-latest tag (npx @modelcontextprotocol/inspector@v1-latest). See AGENTS.md for branch/board conventions.

Quick start (development)

Requires Node >=22.19.0.

npm install          # at the repo root; postinstall cascades into every client
npm run build        # web → cli → tui → launcher

For day-to-day web iteration, run Vite directly — fast HMR, no launcher build needed:

cd clients/web && npm run dev

The launcher-driven scripts run the built launcher, so build first:

npm run web        # prod web launcher against clients/web/dist
npm run web:dev    # web launcher in --dev mode (Vite)
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector # web UI (default)
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →