1. Conduid
  2. Developer Tools
  3. Nu
MCP server · Developer Tools

Nu

MCP server for Nushell script execution

Unclaimed last commit a year ago mcp-servernushell
34Low

Scored 6 months ago · breakdown

About Nu

Nu is an MCP server published by cablehead in the Developer Tools category: mCP server for Nushell script execution.

The repository has 8 stars and 2 forks, with the last commit a year 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/cablehead/mcp-server-nu

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 Nu

Powered by Claude · Grounded in docs

I know everything about Nu. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Server Nu

An MCP (Model Context Protocol) server that allows AI assistants to execute Nushell scripts with full system access.

How it works

This server spawns nu -c "<script>" processes to execute commands. The nu process runs with the same permissions as the server process, giving it access to:

  • File system (read/write/delete)
  • Network (make requests, start servers)
  • Environment variables
  • System commands via nu's shell integration
  • Any custom nu configurations you provide

Security implications: The AI can execute arbitrary code on your system. Only use with trusted AI assistants and in environments where this level of access is acceptable.

Tool: exec

Executes Nushell scripts and returns stdout, stderr, exit code.

Parameters:

  • script (required): Nushell script to execute
  • timeout_seconds (optional): Timeout in seconds (default: 30)

Example:

{
  "script": "ls | where size > 1MB | get name",
  "timeout_seconds": 10
}

Configuration

The server accepts optional CLI arguments to use custom nu config files:

mcp-server-nu --nu-config /path/to/config.nu --nu-env-config /path/to/env.nu

Options:

  • --nu-config <path>: Custom config.nu file (sets up commands, aliases, etc.)
  • --nu-env-config <path>: Custom env.nu file (sets up environment variables)

When provided, these configs are loaded for every script execution via nu --config <path> --env-config <path> -c "<script>".

Install & Test

cargo install --locked mcp-server-nu
npx @modelcontextprotocol/inspector mcp-server-nu

With custom config:

npx @modelcontextprotocol/inspector -- mcp-server-nu --nu-config /path/to/config.nu

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Nu

How do I install Nu?

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

Is Nu safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Nu still maintained?

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