1. Conduid
  2. Developer Tools
  3. Urfave CLI MCP
MCP server · Developer Tools

Urfave CLI MCP

Expose https://github.com/urfave/cli app as an MCP server

Unclaimed MIT last commit 9 months ago model-context-protocolurfave-cligolang-librarydevtools
56Fair

Scored 1 hours ago · breakdown

About Urfave CLI MCP

Urfave CLI MCP is an MCP server published by thepwagner in the Developer Tools category: expose https://github.com/urfave/cli app as an MCP server.

The repository has 2 stars and 0 forks, with the last commit 9 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/thepwagner/urfave-cli-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Urfave CLI MCP

Powered by Claude · Grounded in docs

I know everything about Urfave CLI MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 1 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.4v0.0.4 · 5 Jun 2025What's Changed ignore hidden commands by @thepwagner in https://github.com/thepwagner/urfave-cli-mcp/pull/3 hidden commands: allow recursion by @thepwagner in https://github.com/thepwagner/urfave-cli-mcp/pull/4 Full Changelog:…
v0.0.3v0.0.3 · 24 May 2025What's Changed respect the .Hidden field on flags->inputs by @thepwagner in https://github.com/thepwagner/urfave-cli-mcp/pull/2 Full Changelog: https://github.com/thepwagner/urfave-cli-mcp/compare/v0.0.2...v0.0.3
v0.0.2v0.0.2 · 24 May 2025What's Changed allow passing a prefix for exposing non-root commands by @thepwagner in https://github.com/thepwagner/urfave-cli-mcp/pull/1 New Contributors @thepwagner made their first contribution in…
v0.0.1v0.0.1 · 24 May 2025Full Changelog: https://github.com/thepwagner/urfave-cli-mcp/commits/v0.0.1

README

urfave-cli-mcp

This is a quick hack for reusing a urfave/cli app as an Model Context Protocol server. It crawls the Command tree provided and exposes subcommands as MCP tools. Supports descriptions, flags, default values, and required flags. Tools are invoked by forking the current process, and returning stdout as the result.

I'm using it to reuse query-only CLIs as an MCP server with one line of code. It might also be useful to create new MCP servers, as you can iterate tools as a CLI before exposing to an MCP client.

Example

package main

import (
	"context"
	"fmt"
	"os"

	urfaveclimcp "github.com/thepwagner/urfave-cli-mcp"
	"github.com/urfave/cli/v3"
)

var App = &cli.Command{
	Name:  "hello",
	Usage: "say hello",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "name",
			Usage: "the name to say hello to",
			Value: "World",
		},
	},
	Action: func(_ context.Context, c *cli.Command) error {
		fmt.Println("Hello,", c.String("name"))
		return nil
	},
}

func main() {
	// Pass the root command you want to expose, then add the "mcp" command to your App
	App.Commands = append(App.Commands, urfaveclimcp.NewMCPCommand(App))
	App.Run(context.Background(), os.Args)
}

README fetched from the repository 1 hours ago. The original is authoritative.

Questions

About Urfave CLI MCP

How do I install Urfave CLI MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Urfave CLI MCP safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Urfave CLI MCP still maintained?

The last commit was 9 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.