Add MCP Tool

Add MCP Tool is a skill for Claude Code, Codex from bartholomej/node-csfd-api. It costs 25 tokens per session (411 once invoked), scanned A, original, MIT.

A guide for exposing an existing CSFD scraper function as a tool that an AI agent can call through the Model Context Protocol, a standard way to connect agents to tools.

In plain words
What is it for?
It is for adding a new callable scraper operation to the MCP server, such as making an existing movie-data function available to an AI agent.
Why use it?
It explains how to describe inputs, register the tool, call the scraper service, and return results or errors in the expected format. It assumes the scraping function already exists.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bartholomej/node-csfd-api/add_mcp_tool
Any agent
npx skills add bartholomej/node-csfd-api --skill add_mcp_tool
Clone the repo
git clone --depth 1 https://github.com/bartholomej/node-csfd-api

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 Add MCP Tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/bartholomej/node-csfd-api/add_mcp_tool.svg)](https://agentmods.dev/skills/bartholomej/node-csfd-api/add_mcp_tool)
Your own site
<a href="https://agentmods.dev/skills/bartholomej/node-csfd-api/add_mcp_tool"><img src="https://agentmods.dev/badge/skills/bartholomej/node-csfd-api/add_mcp_tool.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 411 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.00411
Opus 5 $0.00013 $0.00205
Sonnet 5 $0.00005 $0.00082
Haiku 4.5 $0.00003 $0.00041

Measured 3d ago against content hash aae4ea987320, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Add MCP Tool 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 3d ago.

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.

.agent/skills/add_mcp_tool/SKILL.md · 67 lines

What it actually says

Add MCP Tool

This skill explains how to Register a new tool in the MCP server so it can be used by LLMs.

Prerequisites

The functionality must already exist in a Service (e.g., csfd.movie(id)). If not, use the implement_scraper_feature skill first.

1. LOCATE the Server Entry

  • File: mcp-server/index.ts

2. DEFINE Input Schema

Use Zod to define the input arguments. Rule: Every .describe() call is part of the prompt for the AI. Be descriptive!

const toolArgs = {
  myParam: z.string().describe('Description of what this parameter does...')
};

3. REGISTER the Tool

Add the server.tool() call.

server.tool(
  'tool_name_snake_case',
  'A clear, action-oriented description of what the tool does. Mention required inputs.',
  toolArgs,
  async ({ myParam }) => {
    try {
      // 1. Call the service
      const result = await csfd.someMethod(myParam);

      // 2. Return JSON content
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2)
          }
        ]
      };
    } catch (error) {
      // 3. Handle errors gracefully
      return {
        content: [{ type: 'text', text: `Error: ${error}` }],
        isError: true
      };
    }
  }
);

4. TEST the Tool

  • Command: yarn build:mcp (to check types)
  • Manual Test: You can temporarily add a call to main() or use the MCP Inspector if configured.
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. 3d ago First seen · 67 lines · 25 tokens per session scan A aae4ea987320

Subscribe to this mod's changes

Add MCP Tool is a skill published in the GitHub repository bartholomej/node-csfd-api (60 stars, last pushed 10d ago), licensed MIT. It adds 25 tokens to every session and 411 once invoked, about $0.0001 per session on Opus 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-08-30.