Agent skill

MCP Integration

by homarr-labs in homarr-labs/homarr

Expose Homarr tRPC procedures safely through MCP. An agent skill from homarr-labs/homarr.

Apache-2.0Auto-check passedAgent Workflows

Install MCP Integration

skills CLI
$ npx skills add homarr-labs/homarr --skill mcp-integration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install homarr-labs/homarr mcp-integration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/homarr-labs/homarr.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mcp-integration .claude/skills/mcp-integration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mcp-integration
GitHub stars
5.1k
Token cost
~1.1k tokens
SKILL.md length
405 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Expose Homarr tRPC procedures safely through MCP. An agent skill from homarr-labs/homarr.

  • Works in 6 steps: Confirm the procedure still enforces its… → Confirm packages/api/src/mcp.ts eagerly… → Confirm the generated tool name,… → …
  • Changing tRPC procedures under packages/api
  • SKILL.md covers Assess exposure, Add metadata, Write discoverable descriptions and Shape inputs for clients, plus 2 more sections
  • Calls bun

What it does

MCP Integration is an agent skill from homarr-labs/homarr. Expose Homarr tRPC procedures safely through MCP. Use when adding or changing tRPC procedures under packages/api, adding MCP metadata, registering an eager MCP router, shaping tool inputs and descriptions, or reviewing MCP authorization, sensitive data, and destructive actions.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Agent Workflows, covering MCP servers and gRPC and Protobuf. It works with Model Context Protocol and tRPC. The repository describes itself as: A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration. The licence is Apache-2.0.

When your agent uses it

  • Changing tRPC procedures under packages/api
  • Adding MCP metadata
  • Registering an eager MCP router
  • Shaping tool inputs and descriptions

Example prompts

  • “/mcp-integration”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the procedure still enforces its ordinary auth and permission boundary.
  2. Confirm packages/api/src/mcp.ts eagerly includes the procedure.
  3. Confirm the generated tool name, description, and JSON schema are unambiguous.
  4. When validating tool-list or extraction changes, use the focused API MCP spec: bun run test packages/api/src/test/mcp.spec.ts.
  5. When validating protocol or transport changes, use the focused route spec: bun run test…
  6. If manually probing /api/mcp/, use a scoped API key and avoid printing credentials or secret-bearing results.

What it can do on your machine

Read from SKILL.md and the folder at commit fc2c15f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MCP Integration loads about 1.1k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 405 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from homarr-labs/homarr at commit fc2c15f, republished under its Apache-2.0 licence (© homarr-labs). 405 words, ~1,062 tokens.

Download SKILL.mdSave it as .claude/skills/mcp-integration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mcp-integration
description
Expose Homarr tRPC procedures safely through MCP. Use when adding or changing tRPC procedures under packages/api, adding MCP metadata, registering an eager MCP router, shaping tool inputs and descriptions, or reviewing MCP authorization, sensitive data, and destructive actions.

MCP Integration

Expose a procedure only when an AI client should call it. Preserve the procedure's existing authorization and add MCP-specific safeguards for sensitive or destructive behavior.

Assess exposure

Prefer:

  • Data queries: list, search, get, health, stats, and summaries.
  • User-requested actions with explicit permission checks and bounded inputs.
  • Serializable results that do not reveal credentials or internal-only state.

Skip subscriptions, session/onboarding internals, file streams, blobs, credential values, and procedures whose authorization or audit behavior is unclear. Ask for a security review when a mutation is destructive, tenant boundaries are ambiguous, or returned data is sensitive.

Add metadata

Place .meta() before .input() and .query() or .mutation():

typescript
getAll: protectedProcedure
  .meta({
    mcp: {
      enabled: true,
      description: "List resources the current user can access, including stable IDs used by resource_get",
    },
  })
  .input(z.object({ limit: z.number().int().min(1).max(100).default(50) }))
  .query(async ({ ctx, input }) => {
    // Preserve normal procedure authorization.
  });

No-input procedures can omit .input(); the MCP extractor accepts an empty object for them.

For mutations, state the effect and required permission in the description:

typescript
remove: permissionRequiredProcedure
  .meta({
    mcp: {
      enabled: true,
      description: "Delete one resource by ID. Requires full access; get the ID from resource_all",
    },
  })
  .input(z.object({ id: z.string() }))
  .mutation(async ({ ctx, input }) => {
    // Perform the permission-scoped action.
  });

Write discoverable descriptions

Include every item that applies:

  • What the tool returns or changes.
  • Supported integrations or services.
  • Required IDs and the tool that returns them.
  • Permission requirements and the meaning of permission fields.
  • Important bounds, confirmation semantics, or irreversible effects.

Use precise domain language. A description such as Get calendar events is insufficient because it omits supported services, required IDs, and result scope.

Shape inputs for clients

  • Use a top-level z.object({...}) for parameterized tools.
  • Bound strings, arrays, numeric ranges, pagination, and payload sizes.
  • Use defaults where a safe, unsurprising value exists.
  • Prefer explicit fields over a top-level union or discriminated union.
  • Keep identifiers stable and describe how to obtain them.
  • Keep secrets out of inputs unless the procedure is explicitly a credential-configuration flow with server-owned encryption and non-return guarantees.
Show full SKILL.md (145 more words)Show less

Register the eager router

The application router in packages/api/src/root.ts is lazy. MCP tool extraction is synchronous, so add an eager import and registration in packages/api/src/mcp.ts:

typescript
import { resourceRouter } from "./router/resource";

export const mcpRouter = createTRPCRouter({
  resource: resourceRouter,
});

Register the smallest router that owns the enabled procedures. If a parent router uses lazy(), import the needed subrouter directly. Metadata on a procedure is not enough; a procedure absent from mcpRouter is not exposed.

Validate the tool surface

  1. Confirm the procedure still enforces its ordinary auth and permission boundary.
  2. Confirm packages/api/src/mcp.ts eagerly includes the procedure.
  3. Confirm the generated tool name, description, and JSON schema are unambiguous.
  4. When validating tool-list or extraction changes, use the focused API MCP spec: bun run test packages/api/src/test/mcp.spec.ts.
  5. When validating protocol or transport changes, use the focused route spec: bun run test apps/nextjs/src/app/api/mcp/[transport]/route.spec.ts.
  6. If manually probing /api/mcp/<transport>, use a scoped API key and avoid printing credentials or secret-bearing results.

© homarr-labs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/mcp-integration of homarr-labs/homarr.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit fc2c15f

Compare with similar skills

MCP Integration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

MCP Integration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MCP Integration this skillhomarr-labs/homarr5.1k—~1.1kAutomated safety check: PassApache-2.0
SpikardGoldziher/spikard124—~799Automated safety check: PassMIT
Nodetool API Referencenodetool-ai/nodetool560—~2.8kAutomated safety check: PassAGPL-3.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Spikard

    Goldziher/spikard

    Scaffold Spikard projects and generate code from OpenAPI, AsyncAPI, OpenRPC, GraphQL, and Protobuf schemas using the Spikard CLI or its MCP server.

    124 GitHub stars~799 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Nodetool API Reference

    nodetool-ai/nodetool

    Integrate with NodeTool over REST, tRPC, MsgPack WebSocket, MCP, or the OpenAI-compatible Chat API, including the document surfaces and workflow execution.

    560 GitHub stars~2.8k tokensUpdated today
    Backend & APIsAuto-check passed
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Builds, modifies, debugs, migrates and verifies TypeScript MCP servers and MCP Apps with the mcp-use framework, treating the installed package's types as the source of truth.

    11k GitHub stars~923 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from homarr-labs/homarr

  • Documentation Sync

    homarr-labs/homarr

    Write Homarr docs only when users need information to set up, use, or troubleshoot the app.

    5.1k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Codebase Context

    homarr-labs/homarr

    Navigate Homarr's monorepo architecture and reuse shared packages.

    5.1k GitHub stars~679 tokensUpdated yesterday
    Auto-check passed
  • Homarr Custom Widget

    homarr-labs/homarr

    Author, validate, preview, test, install, or configure API-backed Homarr Custom JSX v2 widgets.

    5.1k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed

Questions about MCP Integration

What does MCP Integration do?

Expose Homarr tRPC procedures safely through MCP. An agent skill from homarr-labs/homarr. MCP Integration is an agent skill from homarr-labs/homarr. Expose Homarr tRPC procedures safely through MCP.

When should I use MCP Integration?

MCP Integration fits situations like: changing tRPC procedures under packages/api; adding MCP metadata; registering an eager MCP router; shaping tool inputs and descriptions.

How do I install MCP Integration in Claude Code?

Run `npx skills add homarr-labs/homarr --skill mcp-integration -a claude-code`. Or copy the skill folder (.agents/skills/mcp-integration in homarr-labs/homarr) into .claude/skills/mcp-integration in your project. Claude Code loads it when a task matches its description.

How do I install MCP Integration in Codex?

Run `npx skills add homarr-labs/homarr --skill mcp-integration -a codex`. Or copy the skill folder (.agents/skills/mcp-integration in homarr-labs/homarr) into .agents/skills/mcp-integration in your project. Codex loads it when a task matches its description.

Can I use MCP Integration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add homarr-labs/homarr --skill mcp-integration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mcp-integration, .gemini/skills/mcp-integration, .github/skills/mcp-integration and .opencode/skills/mcp-integration in your project.

What does MCP Integration need to run?

Going by SKILL.md and its folder, MCP Integration needs the command-line tools its instructions call (bun).

Does MCP Integration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is MCP Integration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does MCP Integration use?

MCP Integration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does MCP Integration use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to MCP Integration?

Skills that share tags, products or a category with MCP Integration: Spikard (Goldziher/spikard, 124 stars), Nodetool API Reference (nodetool-ai/nodetool, 560 stars), MCP Server Builder (anthropics/skills, 180k stars) and MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MCP Integration?

homarr-labs (a GitHub organization) maintains it in homarr-labs/homarr, which has 5,056 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 10, 2026.

Source: homarr-labs/homarr on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.