Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Assemble a Custom Assistant With a Self-Generated MCP Layer

Overview

Wrap your own shell and Python helper scripts in non-interactive Claude Code calls, then have Claude Code scaffold an MCP server that offers a few of those scripts as tools to other MCP clients.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
Claude Code
Prerequisites
Claude Code with a plan or API key, your own helper scripts, and comfort reading generated server code.

How It Works

Start from the small scripts you already use, such as one that summarises a log folder or one that files notes. Call Claude Code from them with claude -p and a short prompt, and list the tools each call may use with --allowedTools so nothing runs that you did not intend. Once a few scripts are useful, install the mcp-server-dev plugin in Claude Code and run its build skill. Describe which scripts should become tools, what inputs each takes and what each returns, and choose a local stdio server. Read the generated code before running it, keep each tool narrow, and leave out any tool that runs arbitrary commands. Add the server to Claude Code with claude mcp add, test each tool, then check whether the other Claude app you use accepts local MCP servers before connecting it there.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Code.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Code.
  3. Check the prerequisitesClaude Code with a plan or API key, your own helper scripts, and comfort reading generated server code.
  4. Gather your detailsCollect what the prompt asks for: Scripts to expose, What each tool returns, Folder the tools may use.
  5. Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.

Practical Starter Prompt: Scaffold an MCP server for my scripts

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Build a local stdio MCP server that exposes these scripts as tools: [Scripts to expose]. For each tool, define its inputs, validate them, call only the named script with those inputs, and return [What each tool returns]. Do not add any tool that runs arbitrary shell commands or reads files outside [Folder the tools may use]. Show me the code and a test plan before installing anything, and wait for my approval.

Approve the generated code before installing it, and test each tool in Claude Code before connecting the server anywhere else.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The Claude Code docs describe non-interactive runs with -p and explicit tool permissions, and an official plugin that scaffolds an HTTP or stdio MCP server from your description. They do not cover how other Claude apps load a server you built, so that step depends on the app.

Limitations and Considerations

An MCP tool runs with your account's permissions, so a tool that can run any shell command gives every connected client that power; expose only fixed, narrow actions. A -p run shows no trust dialog, so set allowed tools explicitly. Each Claude Code call uses your plan or API usage. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)code.claude.com

Related Videos

About anthropics/claude-code

About anthropics/claude-code

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Run Claude Code programmatically - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC

    What this source supports
    • To run Claude Code in non-interactive mode, pass -p with your prompt and the CLI options you need, for example --allowedTools to auto-approve specific tools.
    • The Agent SDK is available as a CLI for scripts and CI/CD, or as Python and TypeScript packages for full programmatic control.
  2. Connect Claude Code to tools via MCP - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 12:10 UTC

    What this source supports
    • You can have Claude scaffold a server for you with the official mcp-server-dev plugin; Claude asks about your use case and scaffolds a remote HTTP or local stdio server.
    • Verify you trust each server before connecting it; servers that fetch external content can expose you to prompt injection risk.
Report a problem

More with Claude Code

Planned, not done

Create Custom Store Tools Instead of Paying for Subscriptions

Use Claude Code to write small in-house tools for an online shop, such as a reply helper for support mail or a margin report, as an alternative to paying for separate apps, with testing before you rely on them.

code.claude.comanthropics/claude-code
Reported by source

Answer technical questions by letting async agents run experiments

Simon Willison sends research questions to cloud coding agents such as Claude Code for web and Codex Cloud, which write and run experiments in a dedicated repo and open a PR.

simonwillison.net · 6 Nov 2025anthropics/claude-code, openai/codex
Planned, not done

Structure Repeated Browser Research Into Evidence Tables

Give Claude Code the open-source Browser Use CLI with a local browser, ask the same research questions across a short list of pages, and keep every answer as a sourced table row.

github.comanthropics/claude-code, browser-use/browser-use

View all: Claude Code