Back to MCP Servers

Ncp

NCP orchestrates your entire MCP ecosystem through intelligent discovery, eliminating token overhead while maintaining 98.2% accuracy.

aggregatorsai
By portel-dev
9210Updated 2 weeks agoJavaScriptNOASSERTION

Installation

npx -y ncp

Configuration

{
  "mcpServers": {
    "ncp": {
      "command": "npx",
      "args": ["-y", "ncp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes

npm version npm downloads GitHub release downloads Latest release License: Elastic-2.0 MCP Compatible

<!-- mcp-name: io.github.portel-dev/ncp --> <div align="center"> <img src="./assets/ncp.svg" alt="NCP Logo" width="200" height="200">

NCP - Natural Context Provider

1 MCP to rule them all

</div>

Your MCPs, supercharged. Find any tool instantly, execute with code mode, run on schedule, discover skills, load Photons, ready for any client. Smart loading saves tokens and energy.

Related Portel project: Photon turns TypeScript methods into reliable agent-facing capabilities: MCP tools, embedded app UIs, CLI commands, web routes, schedules, webhooks, retries, and Beam interfaces. NCP helps agents discover and operate tools; Photon helps developers build the tools and apps agents can trust.

๐Ÿ’ What is NCP?

Instead of your AI juggling 50+ tools scattered across different MCPs, NCP gives it a single, unified interface with code mode execution, scheduling, skills discovery, and custom Photons.

Your AI sees just 2-3 simple tools:

  • find - Search for any tool, skill, or Photon: "I need to read a file" โ†’ finds the right tool automatically
  • code - Execute TypeScript directly: await github.create_issue({...}) (code mode, enabled by default)
  • run - Execute tools individually (when code mode is disabled)

Behind the scenes, NCP manages all 50+ tools + skills + Photons: routing requests, discovering the right capability, executing code, scheduling tasks, managing health, and caching responses.

NCP Transformation Flow

Why this matters:

  • Your AI stops analyzing "which tool do I use?" and starts doing actual work
  • Code mode lets AI write multi-step TypeScript workflows combining tools, skills, and scheduling
  • Skills provide domain expertise: canvas design, PDF manipulation, document generation, more
  • Photons enable custom TypeScript MCPs without npm publishing
  • 97% fewer tokens burned on tool confusion (2,500 vs 103,000 for 80 tools)
  • 5x faster responses (sub-second tool selection vs 5-8 seconds)
  • Your AI becomes focused. Not desperate.

๐Ÿš€ NEW: Project-level configuration - each project can define its own MCPs automatically

What's MCP? The Model Context Protocol by Anthropic lets AI assistants connect to external tools and data sources. Think of MCPs as "plugins" that give your AI superpowers like file access, web search, databases, and more.


๐Ÿ“‘ Quick Navigation


๐Ÿ˜ค The MCP Paradox: From Assistant to Desperate

You gave your AI assistant 50 tools to be more capable. Instead, you got desperation:

  • Paralyzed by choice ("Should I use read_file or get_file_content?")
  • Exhausted before starting ("I've spent my context limit analyzing which tool to use")
  • Costs explode (50+ tool schemas burn tokens before any real work happens)
  • Asks instead of acts (used to be decisive, now constantly asks for clarification)

๐Ÿงธ Why Too Many Tools Break the System

Think about it like this:

A child with one toy โ†’ Treasures it, masters it, creates endless games with it A child with 50 toys โ†’ Can't hold them all, gets overwhelmed, stops playing entirely

Your AI is that child. MCPs are the toys. More isn't always better.

The most creative people thrive with constraints, not infinite options. A poet given "write about anything" faces writer's block. Given "write a haiku about rain"? Instant inspiration.

Your AI is the same. Give it one perfect tool โ†’ Instant action. Give it 50 tools โ†’ Cognitive overload. NCP provides just-in-time tool discovery so your AI gets exactly what it needs, when it needs it.


๐Ÿ“Š The Before & After Reality

Before NCP: Desperate Assistant ๐Ÿ˜ตโ€๐Ÿ’ซ

When your AI assistant manages 50 tools directly:

๐Ÿค– AI Assistant Context:
โ”œโ”€โ”€ Filesystem MCP (12 tools) โ”€ 15,000 tokens
โ”œโ”€โ”€ Database MCP (8 tools) โ”€โ”€โ”€ 12,000 tokens
โ”œโ”€โ”€ Web Search MCP (6 tools) โ”€โ”€ 8,000 tokens
โ”œโ”€โ”€ Email MCP (15 tools) โ”€โ”€โ”€โ”€โ”€ 18,000 tokens
โ”œโ”€โ”€ Shell MCP (10 tools) โ”€โ”€โ”€โ”€โ”€ 14,000 tokens
โ”œโ”€โ”€ GitHub MCP (20 tools) โ”€โ”€โ”€โ”€ 25,000 tokens
โ””โ”€โ”€ Slack MCP (9 tools) โ”€โ”€โ”€โ”€โ”€โ”€ 11,000 tokens

๐Ÿ’€ Total: 80 tools = 103,000 tokens of schemas

What happens:

  • AI burns 50%+ of context just understanding what tools exist
  • Spends 5-8 seconds analyzing which tool to use
  • Often picks wrong tool due to schema confusion
  • Hits context limits mid-conversation

After NCP: Executive Assistant โœจ

With NCP as Chief of Staff:

๐Ÿค– AI Assistant Context:
โ””โ”€โ”€ NCP (2 unified tools) โ”€โ”€โ”€โ”€ 2,500 tokens

๐ŸŽฏ Behind the scenes: NCP manages all 80 tools
๐Ÿ“ˆ Context saved: 100,500 tokens (97% reduction!)
โšก Decision time: Sub-second tool selection
๐ŸŽช AI behavior: Confident, focused, decisive

Real results from our testing:

Your MCP SetupWithout NCPWith NCPToken Savings
Small (5 MCPs, 25 tools)15,000 tokens8,000 tokens47% saved
Medium (15 MCPs, 75 tools)45,000 tokens12,000 tokens73% saved
Large (30 MCPs, 150 tools)90,000 tokens15,000 tokens83% saved
Enterprise (50+ MCPs, 250+ tools)150,000 tokens20,000 tokens87% saved

Translation:

  • 5x faster responses (8 seconds โ†’ 1.5 seconds)
  • 12x longer conversations before hitting limits
  • 90% reduction in wrong tool selection
  • Zero context exhaustion in typical sessions

๐Ÿ“‹ Prerequisites

  • Node.js 18+ (Download here)
  • npm (included with Node.js) or npx for running packages
  • Command line access (Terminal on Mac/Linux, Command Prompt/PowerShell on Windows)

๐Ÿš€ Installation

Choose your MCP client for setup instructions:

ClientDescriptionSetup Guide
Claude DesktopAnthropic's official desktop app. Best for NCP - one-click .dxt install with auto-syncโ†’ Full Guide
Claude CodeTerminal-first AI workflow. Works out of the box!Built-in support
VS CodeGitHub Copilot with Agent Mode. Use NCP for semantic tool discoveryโ†’ Setup
CursorAI-first code editor with Composer. Popular VS Code alternativeโ†’ Setup
WindsurfCodeium's AI-native IDE with Cascade. Built on VS Codeโ†’ Setup
ClineVS Code extension for AI-assisted development with MCP supportโ†’ Setup
ContinueVS Code AI assistant with Agent Mode and local LLM supportโ†’ Setup
Want more clients?See the full list of MCP-compatible clients and toolsOfficial MCP Clients โ€ข Awesome MCP
Other ClientsAny MCP-compatible client via npmQuick Start โ†“

Quick Start (npm)

For advanced users or MCP clients not listed above:

Step 1: Install NCP

npm install -g @portel/ncp

Step 2: Import existing MCPs (optional)

ncp config import  # Paste your config JSON when prompted

Step 3: Configure your MCP client

Add to your client's MCP configuration:

{
  "mcpServers": {
    "ncp": {
      "command": "ncp"
    }
  }
}

โœ… Done! Your AI now sees just 2 tools instead of 50+.

NCP List Overview


๐Ÿงช Test Drive: See the Difference Yourself

Want to experience what your AI experiences? NCP has a human-friendly CLI:

๐Ÿ” Smart Discovery

# Ask like your AI would ask:
ncp find "I need to read a file"
ncp find "help me send an email"
ncp find "search for something online"

NCP Find Command

Notice: NCP understands intent, not just keywords. Just like your AI needs.

๐Ÿ“‹ Ecosystem Overview

# See your complete MCP ecosystem:
ncp list --depth 2

# Get help anytime:
ncp --help

NCP Help Command

โšก Direct Testing

# Test any tool safely:
ncp run filesystem read_file --path "/tmp/test.txt"

Why this matters: You can debug and test tools directly, just like your AI would use them.

โœ… Verify Everything Works

# 1. Check NCP is installed correctly
ncp --version

# 2. Confirm your MCPs are imported
ncp list

# 3. Test tool discovery
ncp find "file"

# 4. Test a simple tool (if you have filesystem MCP)
ncp run filesystem read_file --path "/tmp/test.txt" --dry-run

โœ… Success indicators:

  • NCP shows version number
  • ncp list shows your imported MCPs
  • ncp find returns relevant tools
  • Your AI client shows only NCP in its tool list

๐Ÿ’ช From Tools to Automation: The Real Power

You've seen find (discover tools) and code (execute TypeScript). Individually, they're useful. Together with scheduling, they become an automation powerhouse.

A Real Example: The MCP Conference Scraper

We wanted to stay on top of MCP-related conferences and workshops for an upcoming release. Instead of manually checking websites daily, we asked Claude:

"Set up a daily scraper that finds MCP conferences and saves them to a CSV file"

What Claude did:

  1. Used code to write the automation:

    // Search the web for MCP conferences
    const results = await web.search({
      query: "Model Context Protocol conference 2025"
    });
    
    // Read each result and extract details
    for (const url of results) {
      const content = await web.read({ url });
      // Extract title, deadline, description...
      // Save to ~/.ncp/mcp-conferences.csv
    }
  2. Used schedule to automate it:

    ncp schedule create code:run "every day at 9am" \
      --name "MCP Conference Scraper" \
      --catchup-missed

How to set this up yourself:

First, install the web photon (provides search and read capabilities):

# Install from the official photons repo
ncp photon add https://raw.githubusercontent.com/portel-dev/photons/main/web.photon.ts

Then a

โ€ฆ

View source on GitHub