home / mcp / newline mcp server
Provides utilities for formatting multi-line shell commands and reading clipboard content via MCP tools.
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.
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.
Prerequisites you need before installing: Node.js and npm installed on your system.
1) Install dependencies.
npm install2) Build the project.
npm run buildThe 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"]
}
}
}Takes a multi-line string and appends a backslash to the end of each line to format shell commands for safe pasting.
Reads the current text content from the system clipboard so you can use it in your workflow.