ap-import-mcp

ap-import-mcp is a skill for Claude Code, Codex from agentproto/ts. It costs 83 tokens per session (903 once invoked), scanned A, original, Apache-2.0.

A tool for discovering, importing, and calling MCP servers. MCP is a standard way for agents to connect to external tools and services.

In plain words
What is it for?
Use it to find configured servers, import one, inspect its available tools, and invoke a selected tool.
Why use it?
It lets you reuse tools already configured in another coding assistant and inspect their exact input requirements before calling them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find configured servers, import one, inspect its available tools, and invoke a selected tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentproto/ts/ap-import-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentproto/ts --skill ap-import-mcp
Clone the repo
git clone --depth 1 https://github.com/agentproto/ts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ap-import-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/ap-import-mcp/github.svg)](https://agentmods.dev/skills/agentproto/ts/ap-import-mcp)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/ap-import-mcp"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-import-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ap-import-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/ap-import-mcp"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-import-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00903
Opus 5.5 $0.00033 $0.00361
Sonnet 5.5 $0.00017 $0.00181
Haiku 4.5 $0.00008 $0.00090

Measured today against content hash 7997cbfa08f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ap-import-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skill-pack-agentproto/src/skills/ap-import-mcp/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ap-import-mcp

When to use

  • The user already has an MCP server configured in claude-code, cursor, or goose and wants it usable here.
  • You need a tool that only exists behind an MCP server (e.g. chrome-devtools, context7).
  • An imported MCP's tools are failing and you need to see the real upstream schema.

Discover → import → inspect → call

// 1. What MCPs exist in the user's other tooling?
mcp_discovered_list({})
// → [{ "id": "claude-code:project:/repo:chrome-devtools", "name": "chrome-devtools", ... }]

// 2. Import the one you need (alias defaults to its name)
mcp_import({ "sourceMcpId": "claude-code:project:/repo:chrome-devtools", "alias": "chrome-devtools" })

// 3. See what it exposes + connection state
mcp_imported_status({})                       // every import: status, transport, tool count
mcp_imported_list({})                         // the curated set only
mcp_imported_tool_list({ "alias": "chrome-devtools" })  // tool names + upstream inputSchema (verbatim JSON Schema)

// 4. Call a tool — build args from the schema you just fetched
mcp_imported_call({ "alias": "chrome-devtools", "toolName": "take_snapshot", "args": {} })

mcp_imported_call returns the full upstream result including isError flags — the proxy forwards verbatim and does not validate. Tool names are the upstream's own, not namespaced.

Restrict the tools of an import

mcp_import accepts an optional allowTools list (exact tool names or * patterns). Other tools are hidden from tools/list and mcp_imported_tool_list, and refused on mcp_imported_call and /mcp/imported/<id> before the upstream is contacted. A re-import keeps the existing list unless a new one is given; an empty list allows nothing.

mcp_import({ "sourceMcpId": "claude-code:project:/repo:chrome-devtools", "alias": "chrome-devtools", "allowTools": ["take_snapshot", "list_*"] })

Remove

mcp_imported_remove({ "id": "claude-code:project:/repo:chrome-devtools" })

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +8 lines 7997cbfa08f6
  2. 2mo ago First seen · 57 lines · 83 tokens per session scan A bcf8be105077

Subscribe to this mod's changes

ap-import-mcp is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 83 tokens to every session and 903 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

ap-import-mcp compared with skills from other repositories

ap-import-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ap-import-mcpagentproto/tsSkill11todayApache-2.0A83Claude Code, Codex
skill-creator-primersammcj/agentic-codingSkill1744d agoApache-2.0A74Claude Code
llm-wikisammcj/agentic-codingSkill1744d agoApache-2.0A82Claude Code
extract-wisdomsammcj/agentic-codingSkill1744d agoApache-2.0A43Claude Code
apply-mantel-stylessammcj/agentic-codingSkill1744d agoApache-2.0A37Claude Code, Codex
home-assistantsammcj/agentic-codingSkill1744d agoApache-2.0A57Claude Code
deepevalsammcj/agentic-codingSkill1744d agoApache-2.0A19Claude Code, Codex