About portel-dev/ncp
portel-dev/ncp is an MCP server published by portel-dev in the Browser category: natural Context Provider (NCP). Your MCPs, supercharged. Find any tool instantly, load on demand, run on schedule, ready for any client. Smart loading saves tokens and energy. Conduid read 32 tools from its source: add, code, confidence, create, delete, doctor and 26 more. No package is published for it, so it installs from a source checkout.
The repository has 102 stars and 10 forks, and its last commit was on 2 Nov 2026. The latest release is 2.3.1 (12 Jun 2026): Bug Fixes close symlink escape in sandboxed filesystem (11ac189) detect MCP filter from loaded MCPs instead of hardcoded list (69f6d9e) harden code-mode sandbox edge cas… It follows 2.3.0 (6 Mar 2026), and the 5 most recent releases go back to 1.8.0 (14 Dec 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include browser.
Install
git clone https://github.com/portel-dev/ncpTools (32)
addAdd MCP server(s) to NCP with smart auto-detection of input type. Supports multiple modes: (1) SINGLE: Add one MCP from registry or manual config (e.g., "github", "canva"). (2) BULK: Pipe-separated names for multiple MCPs (e.g., "gmail | slack | github"). (3) FILE IMPORT: Path to config file or Photon (e.g., "~/backup.json", "./calculator.photon.ts"). (4) URL: HTTP/SSE server URL (e.g., "https://mcp.example.com") or Photon file URL (e.g., "https://example.com/calc.photon.ts"). (5) CLIPBOARD: Use special value "clipboard" to import from clipboard (auto-detects JSON config or TypeScript Photon). For uncertain names, use "find" method first to discover available MCPs.| Parameter | Type | Description |
|---|---|---|
| args | array | Optional. Command arguments for stdio servers. Only for manual single-MCP configuration. |
| command | string | Optional. Command for stdio servers (e.g., "npx", "python"). Only for manual single-MCP configuration when mcp_name is a simple name. |
| mcp_name * | string | REQUIRED. Smart parameter that auto-detects mode: (1) Single name: "github" → registry lookup or manual. (2) Pipe-separated: "gmail | slack" → bulk install from registry. (3) File path: "~/config.json" (JSON config) or "./calculator.photon.ts" (Photon) → import from file. (4) URL: "https://mcp.example.com" (HTTP/SSE server) or "https://example.com/calc.photon.ts" (Photon download). (5) "clipboard" → import from clipboard (auto-detects JSON or TypeScript). Pre-fill based on user intent, or use "find" method to discover MCP names first. |
| profile | string | Target profile name (default: "all") |
| transport | string | Optional transport for a new HTTP server (default: streamableHttp). Use sse for legacy SSE endpoints. |
| url | string | Optional. URL for HTTP/SSE servers. Only for manual single-MCP configuration when mcp_name is a simple name (overrides auto-detected URL mode). |
codeExecute TypeScript code with automatic tool discovery and parameter mapping. **PRIMARY METHOD - ncp.do(intent, params):** Single-call execution with embedding-based param matching. No need to know exact tool names or param schemas! ncp.do("send email", { recipient: "john@example.com", // Auto-maps to "to" title: "Meeting", // Auto-maps to "subject" message: "Let's meet" // Auto-maps to "body" }) **Returns on success:** { success: true, tool, result, paramMappings } **Returns on failure:** { success: false, tool, schema, hint } - schema shows actual params needed - hint suggests corrections - Retry with correct params! **FALLBACK - Direct namespace calls (when you know exact tools):** - ncp.find("query"): Returns Tool[] with { toolName, schema, confidence } - namespace.tool(): Direct call e.g., gmail.send_email({ to, subject, body })| Parameter | Type | Description |
|---|---|---|
| code * | string | TypeScript code. Use ncp.do("intent", { params }) for automatic tool discovery and param mapping. |
| timeout | number | Timeout in ms (default: 30000, max: 300000) |
confidenceMatch confidence (0.0-1.0)createCreate scheduled job with cron/natural language timing.| Parameter | Type | Description |
|---|---|---|
| active | boolean | Start active (default: true) or paused |
| description | string | Job description |
| endDate | string | Stop after this date (ISO 8601) |
| fireOnce | boolean | Execute once then stop (default: false) |
| maxExecutions | number | Max executions before stopping |
| name * | string | Job name |
| parameters * | object | Tool parameters |
| schedule * | string | Schedule: "in 5min", "every day at 9am", cron (0 9 * * *), or RFC 3339 |
| skipValidation | boolean | Skip validation (not recommended) |
| testRun | boolean | Test execute before scheduling |
| timezone | string | IANA timezone (default: ${Intl.DateTimeFormat().resolvedOptions().timeZone}). Ignored for RFC 3339. |
| tool * | string | MCP tool (format: mcp:tool) |
deleteDelete scheduled job.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID or name |
doctorRun diagnostics on NCP system health and MCP configurations. Read-only - reports issues without making changes. Matches CLI: ncp doctor| Parameter | Type | Description |
|---|---|---|
| mcp_name | string | Check specific MCP only (optional - omit to check all) |
| profile | string | Profile to check (default: "all") |
executionsView execution history.| Parameter | Type | Description |
|---|---|---|
| job_id | string | Filter by job ID or name (omit for all) |
| limit | number | Max results |
| status | string | Filter by status |
exportExport current NCP configuration. Use clipboard for security (no chat history), response for transparency.| Parameter | Type | Description |
|---|---|---|
| destination | string | File path (only for to=file) |
| profile | string | Profile to export (default: "all") |
| to | string | Export destination: clipboard (silent, secure), response (visible to AI), or file |
findSearch or list MCP tools. Call as find() - no prefix needed. With description param: vector search tools by capability. Without description: list all available tools. Use pipe separator for multi-query ("gmail | slack").| Parameter | Type | Description |
|---|---|---|
| confidence_threshold | number | Min confidence 0.0-1.0 (default: 0.35). Lower=more results, higher=precise. |
| depth | number | Detail level: 0=names, 1=+descriptions, 2=+parameters (default: 2) |
| description | string | Search query describing capability you need (e.g. "send email", "read file"). OMIT this parameter entirely to list all tools (do not pass "list all" or empty string). Use pipe separator for multi-query ("gmail | slack"). |
| limit | number | Max results per page (default: 5 search, 20 list) |
| page | number | Page number (default: 1) |
getGet job details.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID or name |
get-runGet details of a specific code execution run including full JSONL log| Parameter | Type | Description |
|---|---|---|
| runId * | string | The run ID from a previous code execution |
listList all configured skill marketplaceslist-runsList recent code execution runs for potential save-as-photon conversion| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of runs to list (default: 10) |
list_directoryList contents of a directory| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the directory to list |
optimize_clientBack up a supported MCP client configuration and replace its MCP server list with NCP. Requires explicit user confirmation.| Parameter | Type | Description |
|---|---|---|
| client_name * | string | Client whose configuration should be optimized, such as Cursor or Windsurf |
overviewVisual analytics dashboard with ASCII charts showing usage stats, token savings, performance metrics, and trends. Returns formatted in markdown code blocks for rendering.| Parameter | Type | Description |
|---|---|---|
| period | number | Number of days to analyze (e.g., 7 for last week, 30 for last month). Default: 7 |
| today | boolean | Show only today's data. Default: false |
pausePause job (stops future executions).| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID or name |
performanceVisual performance report with gauges and charts showing fastest MCPs, reliability metrics, and response times. Returns formatted in markdown code blocks.| Parameter | Type | Description |
|---|---|---|
| period | number | Number of days to analyze. Default: 7 |
| today | boolean | Show only today's data. Default: false |
read_fileRead contents of a file from the filesystem| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the file to read |
read_resourceRead additional files from an installed skill (resources/, scripts/, templates/, etc.). Use after skills:find with depth=3 to see available files.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Relative path within skill directory (e.g., "resources/forms.md", "scripts/process.py") |
| skill_name * | string | Name of the installed skill |
removeRemove an MCP server from NCP configuration. First use "find" or "list" to identify the exact mcp_name, then call this tool. User confirmation required (automatic popup).| Parameter | Type | Description |
|---|---|---|
| mcp_name * | string | REQUIRED. Name of the MCP server to remove. Pre-fill if extractable from user intent, otherwise use "find" or "list" method to get the exact name first. |
| profile | string | Profile to remove from (default: "all") |
resumeResume paused job.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID or name |
retrieveGet jobs and/or executions with search and filtering.| Parameter | Type | Description |
|---|---|---|
| execution_id | string | Get specific execution |
| include | string | What to return: jobs, executions, or both |
| job_id | string | Filter by job ID or name |
| limit | number | Max results per page |
| page | number | Page number |
| query | string | Search term (omit for all) |
| status | string | Filter by status |
runExecute MCP tool (format: mcp:tool). Provides suggestions if not found.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Preview without executing (default: false) |
| parameters | object | Tool parameters |
| tool * | string | Tool to execute (format: mcp:tool) |
save-as-photonConvert a successful code execution into a reusable Photon (.photon.ts file)| Parameter | Type | Description |
|---|---|---|
| description * | string | Description of what this Photon does |
| photonName * | string | Name for the new Photon (will be kebab-case, e.g., my-tool) |
| runId * | string | The run ID of the code execution to convert |
searchSearch all skill marketplaces for available skills to install| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return |
| query | string | Optional search query to filter skills. Supports "|" for multi-search (e.g., "pdf|excel"). If omitted, returns all available skills. |
tokensToken usage and savings from Code-Mode vs find+run. Shows efficiency gains.| Parameter | Type | Description |
|---|---|---|
| period | number | Days to analyze (default: 7) |
triggerTrigger an immediate execution of a scheduled job (manual run).| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID or name |
updateUpdate job timing, parameters, or active state.| Parameter | Type | Description |
|---|---|---|
| active | boolean | Activate or pause |
| description | string | New description |
| endDate | string | New end date |
| fireOnce | boolean | New fireOnce |
| job_id * | string | Job ID or name |
| maxExecutions | number | New max executions |
| name | string | New name |
| parameters | object | New parameters |
| schedule | string | New schedule |
| tool | string | New tool |
usageDetailed usage statistics with properly spaced markdown tables: most used MCPs, tool counts, hourly patterns, peak usage times. Tables are readable in plain text without rendering.| Parameter | Type | Description |
|---|---|---|
| period | number | Number of days to analyze. Default: 7 |
| today | boolean | Show only today's data. Default: false |
validateValidate tool parameters before scheduling (dry-run). REFERENCE IMPLEMENTATION for MCP validation protocol.| Parameter | Type | Description |
|---|---|---|
| parameters * | object | Tool parameters to validate |
| schedule | string | Schedule to validate (optional). Supports: "in 5 minutes", "in 2 hours", "every day at 2pm", cron expressions, or RFC 3339 datetimes |
| tool * | string | Tool to validate in format "mcp:tool" (e.g., "filesystem:read_file") |
write_fileWrite content to a file on the filesystem| Parameter | Type | Description |
|---|---|---|
| content * | string | Content to write to the file |
| path * | string | Path to write the file |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.7K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 172 source files and found 29 calls to eval or shell execution, in src/auth/oauth-auth-code-flow.ts:185, src/cli/commands/doctor.ts:87 and src/cli/index.ts:2939 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/server/mcp-server.ts:1
- Starts other programs
- 27 callssrc/auth/oauth-auth-code-flow.ts:185, src/cli/commands/doctor.ts:87, src/cli/index.ts:2939
- Outbound network calls
- 42 callssrc/auth/auth-detector.ts:47, src/auth/auth-detector.ts:217, src/auth/oauth-auth-code-flow.ts:335
- Writes or deletes files
- 90 callssrc/analytics/token-metrics.ts:110, src/auth/secure-credential-store.ts:113, src/auth/secure-credential-store.ts:116
- Lockfile
- package-lock.json
Pattern matches on the source text of 172 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README