home / mcp / newline mcp server

Newline MCP Server

Provides utilities for formatting multi-line shell commands and reading clipboard content via MCP tools.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "besscoleridge-newline": {
      "command": "node",
      "args": [
        "/path/to/newline/dist/index.js"
      ]
    }
  }
}

Newline MCP Server provides utilities to format multi-line shell commands for safe pasting and to read text from the system clipboard. It exposes two tools that help you prepare complex commands and quickly grab clipboard content for use in your workflows.

How to use

You connect this MCP server to your MCP client to access two practical tools. Use format_multiline_command to take a multi-line shell command and append a backslash to the end of each line. This lets you paste the entire command as a single block without accidentally executing intermediate lines. Use read_clipboard to fetch the current text from your clipboard and insert it into your workflow without retyping.

How to install

Prerequisites you need before installing: Node.js and npm installed on your system.

1) Install dependencies.

npm install

2) Build the project.

npm run build

Configuration and startup

The MCP server is started through a local Node process. Use the following run configuration to connect from your MCP client.

{
  "mcpServers": {
    "newline": {
      "command": "node",
      "args": ["/path/to/newline/dist/index.js"]
    }
  }
}

Available tools

format_multiline_command

Takes a multi-line string and appends a backslash to the end of each line to format shell commands for safe pasting.

read_clipboard

Reads the current text content from the system clipboard so you can use it in your workflow.