Logo von Mcpshim

Mcpshim

Organisation
mcpshim

Turn remote MCP servers into local command workflows.

Herausgebermcpshim
Repositorymcpshim
SpracheGo
Forks
9
Sterne
66
Verfügbare Tools
0
Transporttypstdio
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Mcpshim stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    66 Sterne und 9 Forks im verlinkten Repository.


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 mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Mcpshim verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Mcpshim als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Mcpshim ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "mcpshim": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Mcpshim. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Mcpshim.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Mcpshim bei dieser Aufgabe helfen?
Mcpshim
Gerne. Ich habe es gelesen.
Das habe ich mit Mcpshim gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Mcpshim verwendet?

Mcpshim ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Mcpshim MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Mcpshim mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Mcpshim MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Mcpshim verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Mcpshim MCP mit TypingMind?

Mcpshim wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Mcpshim MCP in TypingMind bereit?

Mcpshim stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Mcpshim MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Mcpshim eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇