Streamable HTTPまたはstdioを使用してMCP serverに接続します。Bearer認証やカスタムヘッダーもサポートしています。
別名 eliware/mcp-client, @eliware/mcp-client
- スター
- 0
- ツール
- —
- ダウンロード数(30日間)
- 1,464
- 最新バージョン
- —
- 最終コミット
- 2026年10月27日
- ライセンス
- MIT
MCP Client MCPとは
MCP ClientはMCPサーバーです。 Streamable HTTPまたはstdioを使用してMCP serverに接続します。Bearer認証やカスタムヘッダーもサポートしています。.
プロジェクトのREADMEから生成された概要
MCP Client MCP server について
このクライアントの主な機能は、さまざまなトランスポートレイヤーを介してModel Context Protocolサーバーに接続することです。開発者はstdioまたはStreamable HTTPのいずれかを使用して接続を確立できます。このツールはNode.js version 26以降の環境向けに設計されており、SDK v2用の純粋なESMパッケージとして構築されています。
ユーザーは、Bearer認証、カスタムHTTPヘッダー、または特定のトークンプロバイダーを実装することで、セキュアな接続を管理できます。クライアントは、インタラクションの監視に役立つ構造化されたログを提供し、接続されたサーバー上の利用可能な機能を検出するためのlistToolsメソッドを備えています。これは、npmインストールを通じてリモートまたはローカルのMCP serverとやり取りする必要があるアプリケーションを構築する開発者を対象としています。
できること
- 1利用可能なサーバーツールの検出接続されたMCP serverから提供されるすべてのツールのリストを取得するようクライアントに指示します。
- 2セキュアなHTTP接続の確立特定のURLと認証ヘッダーを使用して、リモートのMCP serverに接続します。
- 3Node.jsアプリへのMCPの統合npmを使用して、JavaScriptプロジェクトにMCPクライアント機能を追加します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
MCP Client MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにMCP Client MCPをインストール
$ claude mcp add mcp-client -- npx -y @eliware/mcp-clientCursorにMCP Client MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-client": {
"command": "npx",
"args": [
"-y",
"@eliware/mcp-client"
]
}
}
}VS CodeにMCP Client MCPをインストール
.vscode/mcp.json
{
"servers": {
"mcp-client": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@eliware/mcp-client"
]
}
}
}VS Code CLIにMCP Client MCPをインストール
$ code --add-mcp '{"name":"mcp-client","type":"stdio","command":"npx","args":["-y","@eliware/mcp-client"]}'Claude DesktopにMCP Client MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"mcp-client": {
"command": "npx",
"args": [
"-y",
"@eliware/mcp-client"
]
}
}
}CodexにMCP Client MCPをインストール
$ codex mcp add mcp-client -- npx -y @eliware/mcp-clientCodex config.tomlにMCP Client MCPをインストール
~/.codex/config.toml
[mcp_servers.mcp-client] command = "npx" args = ["-y", "@eliware/mcp-client"]
Gemini CLIにMCP Client MCPをインストール
$ gemini mcp add -s user mcp-client npx -- -y @eliware/mcp-clientGemini settings.jsonにMCP Client MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"mcp-client": {
"command": "npx",
"args": [
"-y",
"@eliware/mcp-client"
]
}
}
}自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能eliware/mcp-client is public and reachablegithub.com/eliware/mcp-client ↗合格
- パッケージがこのリポジトリをソースとして指定@eliware/mcp-client names eliware/mcp-client as sourcenpmjs.com/package/@eliware/mcp-client ↗合格
- ビルドの来歴 (Sigstore 証明)Sigstore attestation for @eliware/mcp-clientnpmjs.com/package/@eliware/mcp-client/v/15.0.1#provenance ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-10-27github.com/eliware/mcp-client ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @eliware/mcp-client合格
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見る@eliware/mcp-client

Pure ESM MCP client for SDK v2, Streamable HTTP, stdio, and bearer authentication.
Table of Contents
- Features
- Requirements
- Setup
- Usage
- Development
- Testing
- Troubleshooting
- Security
- API
- Packaging
- Examples
- Support
- Links
- License
Features
Connect to MCP servers through Streamable HTTP or stdio. Use bearer tokens, custom HTTP headers, token providers, and structured logs.
Requirements
Use Node.js 26 or later.
Setup
Install the package with npm install @eliware/mcp-client.
Usage
import { mcpClient } from "@eliware/mcp-client";
const client = await mcpClient({ url: "https://mcp.example.com/mcp" });
try {
console.log(await client.listTools());
} finally {
await client.close();
}
Read the documentation index, specifications, and release notes.
Development
Run npm ci to install locked dependencies. Read repository specifications for contributor requirements.
Testing
Run npm test for aggregate validation.
Troubleshooting
Read the troubleshooting guide for connection help.
Security
Keep access tokens, credentials, and private server data out of source files and logs.
API
Import mcpClient from @eliware/mcp-client. Read the API guide for options and return types.
Packaging
The package includes src/, docs/, README.md, AGENTS.md, LICENSE, RELEASE_NOTES.md, examples/, specs/, and .env.example.
Use numeric MAJOR.MINOR.PATCH versions and a v<version> tag for each release.
Run npm run pack to check package contents. Publish only after approved release steps.
Examples
Read the examples index for commands, results, permissions, and cleanup.
Support
For help, questions, or to chat with the author and community, visit:
Links
License
MCP Client MCPのよくある質問
MCP Client MCPをClaude Codeに追加するには
ターミナルでclaude mcp add mcp-client -- npx -y @eliware/mcp-clientを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
MCP Client MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
このクライアントのシステム要件は何ですか?
Node.js version 26以降を使用する必要があります。
どのようにMCP serverに接続できますか?
このクライアントはStreamable HTTPまたはstdio経由の接続をサポートしています。
パッケージのインストール方法を教えてください。
npm install @eliware/mcp-client コマンドを使用してインストールできます。


