Mcpshimのロゴ

Mcpshim

組織
mcpshim

Turn remote MCP servers into local command workflows.

公開者mcpshim
リポジトリmcpshim
言語Go
フォーク
9
スター
66
利用可能なツール
0
通信方式stdio
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Mcpshimは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには66件のスターと9件のフォークがあります。


The Problem

Remote MCP servers and HTTP APIs are powerful, but each service has its own auth flow, transport expectations, and invocation patterns. Wiring all of that directly into every script or agent loop creates brittle command workflows.

For LLM agents, there is also context pressure: dumping raw MCP schemas for every connected server can consume prompt budget before useful work begins.

The Solution

mcpshimd centralizes MCP registration and OAuth alongside configured HTTP service bindings, discovery, call execution, and history behind one local socket.

mcpshim exposes every remote MCP tool and configured HTTP operation as a standard CLI command. Flags map to tool parameters and output comes back as structured JSON. No SDKs or libraries are required by the caller.

Why MCPShim

Without MCPShimWith MCPShim
Tool integrationCustom per-service wiringOne daemon + one CLI
Auth handlingPer-script OAuth/header logicCentralized in mcpshimd
Tool invocationProvider-specific conventionsmcpshim call --server --tool ...
HTTP API bindingHand-written client codeTyped or constrained raw tools
Agent context budgetLarge MCP schemas in promptAlias-based local command workflows
Operational historyAd-hoc loggingBuilt-in call history in SQLite

Architecture

ComponentRole
mcpshimdLocal daemon for MCP/HTTP registry, discovery, auth, calls, and IPC
mcpshimCLI client for config, discovery, tool calls, history, and script

All client calls go through a Unix socket and JSON request/response protocol.

Quick Start

1. Install from source

bash
go install github.com/mcpshim/mcpshim/cmd/mcpshimd@latest
go install github.com/mcpshim/mcpshim/cmd/mcpshim@latest

2. Configure

bash
mkdir -p ~/.config/mcpshim
cat > ~/.config/mcpshim/config.yaml <<'YAML'
servers:
  - name: notion
    alias: notion
    transport: http
    url: https://mcp.notion.com/mcp
YAML

3. Start daemon and inspect

bash
mcpshimd
mcpshim status
mcpshim servers
mcpshim tools

Path Defaults

ResourceDefault LocationOverride
Config~/.config/mcpshim/config.yaml--config, $MCPSHIM_CONFIG
Socket$XDG_RUNTIME_DIR/mcpshim.sockmcpshimd --socket ...
Database~/.local/share/mcpshim/mcpshim.dbserver.db_path in YAML config

All paths follow XDG defaults where applicable.

Daemon flags

FlagDescription
--configPath to config YAML
--socketOverride unix socket path
--debugEnable debug logging
--versionPrint version and exit

Core Commands

CommandDescription
mcpshim serversList registered MCP/HTTP services
mcpshim tools [--server name] [--full]List tools for all or one server
mcpshim inspect --server s --tool tShow tool schema/details
mcpshim call --server s --tool t --arg valueExecute a tool call
mcpshim add --name s --url ... [--alias a]Register a new MCP endpoint (opt-in)
mcpshim set auth --server s --header K=VSet auth headers for a server (opt-in)
mcpshim remove --name sRemove a registered server (opt-in)
mcpshim reloadReload daemon configuration
mcpshim validate [--config path]Validate config file
mcpshim login --server s [--manual]Complete OAuth login flow
mcpshim history [--server s] [--tool t] [--limit n]Show persisted call history
mcpshim history --clear [--server s] [--tool t]Clear scoped call history
mcpshim history --clear --allClear all call history
mcpshim script [--install] [--dir ~/.local/bin]Generate/install alias wrappers

Register MCP servers

The config file is the source of truth. Edit it and reload:

bash
$EDITOR ~/.config/mcpshim/config.yaml
mcpshim reload

add, set auth, and remove do the same thing over the socket, and are refused by default. Those actions rewrite the config file, so leaving them enabled makes socket access equivalent to config write access - which matters because anything reaching the socket is already able to call every tool you have registered. Turn them on only when runtime registration is worth that:

yaml
server:
  allow_registry_writes: true
bash
mcpshim add --name notion --alias notion --transport http --url https://example.com/mcp
mcpshim set auth --server notion --header 'Authorization=Bearer ${NOTION_MCP_TOKEN}'
mcpshim reload

Credentials are never readable back through the socket either way: servers reports has_auth as a boolean and never returns header values.

Dynamic flags

Tool flags are converted automatically to MCP arguments:

bash
mcpshim call --server notion --tool search --query "projects" --limit 10 --archived false

Tip: JSON output is automatic when stdout is not a terminal. Put the global --json before the command to force JSON output in a terminal. On call, --json after the tool selector parses JSON-like text fields returned by the remote tool.

Objects, arrays, and null can be passed as JSON values. MCPShim uses the discovered tool schema to keep string properties as strings:

bash
mcpshim call --server notion --tool search \
  --filter '{"status":"open"}' \
  --ids '[1,2,3]' \
  --cursor null

HTTP Services

Ordinary HTTP APIs can be exposed without implementing an MCP server. A service owns its base URL, credentials, and policy, then publishes typed tools, a constrained raw request tool, or both:

yaml
http_services:
  - name: deployment-api
    alias: deploy
    base_url: https://deploy.example.com/api
    headers:
      Authorization: Bearer ${DEPLOY_API_TOKEN}
    policy:
      redirects: same-origin
      allowed_request_content_types: [application/json]
      max_response_bytes: 2097152
    raw_tool:
      name: request
      methods: [GET, POST, PATCH]
      paths: [/v1/deployments/**]
    tools:
      - name: get_deployment
        request:
          method: GET
          path: /v1/deployments/{deployment_id}
        inputs:
          deployment_id:
            type: string
            required: true
bash
mcpshim call --server deploy --tool get_deployment --deployment_id dep_123
mcpshim call --server deploy --tool request \
  --method PATCH \
  --path /v1/deployments/dep_123 \
  --body '{"desired_state":"running"}'

Typed request bodies, queries, and headers support deeply nested structural templates with $arg, $default, $omit_if_missing, and $format. The raw tool remains limited to configured methods and wildcard paths and cannot override authentication or other protected headers.

See the complete HTTP service guide and configs/http-services.example.yaml.


OAuth Flow

For OAuth-capable MCP servers, you can configure URL-only registration:

bash
mcpshim add --name notion --alias notion --transport http --url https://mcp.notion.com/mcp

When a request receives 401 and no Authorization header is configured, MCPShim checks its SQLite token store. If authorization is still required, the command tells you to run an explicit login instead of starting an interactive browser flow inside the daemon.

You can also pre-authorize:

bash
mcpshim login --server notion
mcpshim login --server notion --manual

--manual supports cross-device auth by printing a URL and accepting pasted callback URL/code.


Call History

Every mcpshim call is recorded by mcpshimd with timestamp, server/tool, args, status, and duration.

bash
mcpshim history
mcpshim history --server notion --limit 20
mcpshim history --server notion --tool search --limit 100
mcpshim history --server notion --clear
mcpshim history --clear --all

History is stored locally in SQLite (call_history table). The daemon retains the newest 1,000 calls by default; set server.history_size in the YAML config to choose another positive limit. Clearing requires at least one filter or an explicit --all.


IPC Protocol

mcpshim communicates with mcpshimd over a Unix socket using JSON messages with an action field.

json
{"action":"status"}
{"action":"servers"}
{"action":"tools","server":"notion"}
{"action":"inspect","server":"notion","tool":"search"}
{"action":"call","server":"notion","tool":"search","args":{"query":"roadmap"}}
{"action":"history","server":"notion","limit":20}
{"action":"clear_history","server":"notion"}
{"action":"clear_history","all":true}
{"action":"add_server","name":"notion","alias":"notion","url":"https://mcp.notion.com/mcp","transport":"http"}
{"action":"set_auth","name":"notion","headers":{"Authorization":"Bearer ..."}}
{"action":"reload"}

Lightweight Aliases

Generate shell functions:

bash
eval "$(mcpshim script)"
notion search --query "projects" --limit 10

If a server name/alias contains shell-incompatible characters (spaces, dashes, punctuation) MCPShim automatically normalizes it to a safe function name (for example, my-server becomes my_server).

Install executable wrappers instead:

bash
mcpshim script --install --dir ~/.local/bin
notion search --query "projects" --limit 10

Deployment

mcpshimd never executes a child process. MCP and configured API traffic uses HTTP or SSE, so the daemon is a credential-holding outbound proxy rather than a local code-execution surface. That makes it well suited to running in its own container with only the socket exposed to the agent.

See docs/deployment.md for the topologies, the trust model of the socket, OAuth in containers, and the operational caveats.


Ecosystem

ProjectRole
zotRun complete coding tasks autonomously from a single brief
PantalkConnect coding agents to the chat platforms people already use
crmkitGive agents a shared CRM and system of record over HTTP or MCP

McpshimのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Mcpshimに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Mcpshimをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. McpshimのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "mcpshim": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMcpshimのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. McpshimのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Mcpshimを使ってこのタスクを手伝ってもらえますか?
Mcpshim
はい、読みました。
Mcpshimで調べた結果をお伝えします。

よくある質問

Mcpshim MCPサーバーは何に使いますか?

Mcpshimは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMcpshim MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMcpshimを利用できます。

TypingMindでMcpshim MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Mcpshimを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Mcpshim MCPをTypingMindに接続するにはどうすればよいですか?

McpshimはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMcpshim MCPのどのようなツールを利用できますか?

McpshimはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Mcpshim MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Mcpshimで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇