cline-local
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cline-localReview this repository for security issues without modifying any files."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local Cline MCP Bridge
This is a local stdio MCP server that exposes one tool, ask_cline. It launches the authenticated Cline CLI and returns only the terminal text response plus model, duration, and usage/cost when Cline supplies them.
Requirements
Node.js 20 or newer
The Cline CLI already installed and authenticated (
cline.exeon Windows)
Related MCP server: Workbench MCP Server
Install, build, and launch
npm install
npm run build
npm test
npm startnpm start runs a stdio server, so it will appear idle until an MCP client connects. Do not type prompts into that terminal.
MCP client configuration
Build first, then add this server to an MCP client that supports stdio servers:
{
"mcpServers": {
"cline-local": {
"command": "node",
"args": ["C:\\Develop\\ClineMcp\\dist\\index.js"]
}
}
}Tool
ask_cline({
prompt: string,
cwd?: string,
thinking?: "none" | "low" | "medium" | "high" | "xhigh",
timeoutSeconds?: number,
systemPrompt?: string
})timeoutSecondsdefaults to180and is limited to300.thinkingdefaults tonone.On Windows,
promptis limited to 20,000 characters andsystemPromptto 8,000. Together they may not exceed 24,000 characters, leaving a safe margin below the Windows command-line limit.The bridge always invokes
cline --json --auto-approve falseand uses an argument array, never a shell command.It passes
--systemonly whensystemPromptis supplied and--cwdonly whencwdis supplied.Cline streamed content and reasoning are ignored. Only a terminal
run_result-style event is returned.With
--auto-approve false, Cline cannot obtain automatic approval for file-changing operations. Use this bridge only for analysis/chat prompts.
Manual test
After configuring the MCP client, call:
{
"prompt": "Reply with exactly: Cline bridge test successful.",
"thinking": "none",
"timeoutSeconds": 180
}The returned text should be Cline bridge test successful.
Isolated workspace analysis
ask_cline_workspace is a separate tool for repository-wide analysis. It requires a cwd inside a Git repository with at least one commit. The bridge creates a detached Git worktree in the system temporary directory, runs Cline there with a mandatory analysis-only instruction, and removes the worktree in a finally block after success, failure, timeout, or cancellation.
{
"prompt": "Review this repository for reliability and security issues. Do not modify files.",
"cwd": "C:\\Develop\\your-repository",
"thinking": "high",
"timeoutSeconds": 300
}This tool uses Cline with automatic tool approval only inside the disposable worktree so it can inspect the repository. The prompt prohibits writes and external side effects, but this is not an operating-system sandbox; use it only for repositories you trust. The original ask_cline tool remains the stricter no-workspace-access option.
Run a live isolated-workspace check with:
npm run verify:workspaceSecurity notes
The bridge does not read or return Cline configuration, credentials, API keys, tokens, stderr, or streamed reasoning. Process launch, non-zero exit, timeout, cancellation, malformed JSONL, and a missing final result are returned as generic MCP tool errors.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to spawn and control Codex CLI and Claude Code sessions on the host machine, with session management and filesystem access.4MIT
- AlicenseNot gradedqualityBmaintenanceProvides remote project access via MCP, enabling file operations, code search, git commands, and background Claude CLI execution.10MIT
- FlicenseNot gradedqualityCmaintenanceEnables ISLI agents and MCP clients to dispatch natural-language coding and terminal tasks to a locally-installed Claude Code CLI, supporting both one-shot execution and persistent sessions with workspace and security controls.
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients like Claude Code to delegate coding tasks to the local Cursor Agent CLI, with persistent per-workspace sessions that resume across calls.12MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/segalz/ClineMcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server