Skip to content
PluginStats

@genkit-ai/mcp weekly downloads statistics

By genkit-ai (2 listings) · npm · MCP servers

A Genkit plugin that provides interoperability between Genkit and Model Context Protocol (MCP). Both client and server use cases are supported.

View on npm Outdated · Oct 28, 2026

@genkit-ai/mcp has 3,639 recorded weekly downloads on npm, a decrease of 22.5% over the past 30 days, ranking #1662 of 3,247 tracked listings.

Weekly downloads
3,639
Official API · Dec 5, 2026
7-day growth
-5.1%
-196 weekly downloads
30-day growth
-22.5%
-1.1K weekly downloads
90-day growth
+11.6%
+379 weekly downloads
Rank
#1662
▼ 85 in 7 days

About @genkit-ai/mcp

Genkit MCP

See Genkit MCP documentation.

Building with a coding agent? Install the Genkit JS skill first.

npx skills add genkit-ai/skills --skill developing-genkit-js

It teaches your agent the current Genkit JS APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.

This plugin provides integration between Genkit and the Model Context Protocol (MCP). MCP is an open standard allowing developers to build "servers" which provide tools, resources, and prompts to clients. Genkit MCP allows Genkit developers to:

  • Consume MCP tools, prompts, and resources as a client using createMcpHost or createMcpClient.
  • Provide Genkit tools and prompts as an MCP server using createMcpServer.

Installation

To get started, you'll need Genkit and the MCP plugin:

npm i genkit @genkit-ai/mcp

MCP Host

To connect to one or more MCP servers, you use the createMcpHost function. This function returns a GenkitMcpHost instance that manages connections to the configured MCP servers.

import { googleAI } from '@genkit-ai/google-genai';
import { createMcpHost } from '@genkit-ai/mcp';
import { genkit } from 'genkit';

const mcpHost = createMcpHost({
  name: 'myMcpClients', // A name for the host plugin itself
  mcpServers: {
    // Each key (e.g., 'fs', 'git') becomes a namespace for the server's tools.
    fs: {
      command: 'npx',
      args: ['-y', '@modelcontextprotocol/server-filesystem', process.cwd()],
    },
    memory: {
      command: 'npx',
      args: ['-y', '@modelcontextprotocol/server-memory'],
    },
  },
});

const ai = genkit({
  plugins: [googleAI()],
});

(async () => {
  // Provide MCP tools to the model of your choice.
  const { text } = await ai.generate({
    model: googleAI.model('gemini-flash-latest'),
    prompt: `Analyze all files in ${process.cwd()}.`,
    tools: await mcpHost.getActiveTools(ai),
    resources: await mcpHost.getActiveResources(ai),
  });

  console.log(text);

  await mcpHost.close();
})();

The createMcpHost function initializes a GenkitMcpHost instance, which handles the lifecycle and communication with the defined MCP servers.

createMcpHost() Options
  • name: (optional, string) A name for the MCP host plugin itself. Defaults to 'genkitx-mcp'.

  • version: (optional, string) The version of the MCP host plugin. Defaults to "1.0.0".

  • rawToolResponses: (optional, boolean) When true, tool responses are returned in their raw MCP format; otherwise, they are processed for Genkit compatibility. Defaults to false.

  • mcpServers: (required, object) An object where each key is a client-side name (namespace) for an MCP server, and the value is the configuration for that server.

    Each server configuration object can include:

    • disabled: (optional, boolean) If true, this server connection will not be attempted. Defaults to false.
    • One of the following server connection configurations:
      • Parameters for launching a local server process using the stdio MCP transport.
        • command: (required, string) Shell command path for launching the MCP server (e.g., npx, python).
        • args: (optional, string[]) Array of string arguments to pass to the command.
        • env: (optional, Record<string, string>) Key-value object of environment variables.
      • url: (string) The URL of a remote server to connect to using the Streamable HTTP MCP transport.
      • transport: An existing MCP transport object for connecting to the server.

MCP Client (Single Server)

For scenarios where you only need to connect to a single MCP server, or prefer to manage client instances individually, you can use createMcpClient.

import { googleAI } from '@genkit-ai/google-genai';
import { createMcpClient } from '@genkit-ai/mcp';
import { genkit } from 'genkit';

const myFsClient = createMcpClient({
  name: 'myFileSystemClient', // A unique name for this client instance
  mcpServer: {
    command: 'npx',
    args: ['-y', '@modelcontextprotocol/server-filesystem', process.cwd()],
  },
  // rawToolResponses: true, // Optional: get raw MCP responses
});

// In your Genkit configuration:
const ai = genkit({
  plugins: [googleAI()],
});

(async () => {
  await myFsClient.ready();

  // Retrieve tools from this specific client
  const fsTools = await myFsClient.getActiveTools(ai);

  const { text } = await ai.generate({
    model: googleAI.model('gemini-flash-latest'), // Replace with your model
    prompt: 'List files in ' + process.cwd(),
    tools: fsTools,
  });
  console.log(text);

  await myFsClient.disable();
})();
createMcpClient() Options

The createMcpClient function takes an McpClientOptions object:

  • name: (required, string) A unique name for this client instance. This name will be used as the namespace for its tools and prompts.
  • version: (optional, string) Version for this client instance. Defaults to "1.0.0".
  • Additionally, it supports all options from McpServerConfig (e.g., disabled, rawToolResponses, and transport configurations), as detailed in the createMcpHost options section.
Using MCP Actions (Tools, Prompts)

Both GenkitMcpHost (via getActiveTools()) and GenkitMcpClient (via getActiveTools()) discover available tools from their connected and enabled MCP server(s). These tools are standard Genkit ToolAction instances and can be provided to Genkit models.

MCP prompts can be fetched using McpHost.getPrompt(serverName, promptName) or mcpClient.getPrompt(promptName). These return an ExecutablePrompt.…

Description from the npm listing.

  • genkit
  • genkit-plugin
  • mcp
  • model-context-protocol
  • ai
  • genai
  • generative-ai

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@genkit-ai/mcp weekly downloads on npm, last 90 days: 3,639 weekly downloads as of Dec 5, 2026, +11.6% over 90 days.@genkit-ai/mcpWeekly downloads on npm · Last 90 days3,639downloads / week+11.6% over 90 days02K4K6K8K10K12KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@genkit-ai/mcp weekly downloads on npm, last 90 days: 3,639 weekly downloads as of Dec 5, 2026, +11.6% over 90 days.

7/30/90-day growth

@genkit-ai/mcp weekly downloads growth on npm: -5.1% over 7 days, -22.5% over 30 days, +11.6% over 90 days.@genkit-ai/mcpWeekly downloads growth on npm3,639downloads / week now7-day growth-196 weekly downloads-5.1%30-day growth-1,058 weekly downloads-22.5%90-day growth+379 weekly downloads+11.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@genkit-ai/mcp weekly downloads growth on npm: -5.1% over 7 days, -22.5% over 30 days, +11.6% over 90 days.

Ranking history

@genkit-ai/mcp npm ranking history: currently #1662 (by weekly downloads).@genkit-ai/mcpnpm ranking · by weekly downloads · Last 90 days#1662current rank#1100#1200#1300#1400#1500#1600#1700Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 21, 2026 – Dec 6, 2026 · 19 observations · Updated Dec 5, 2026pluginstats.com
@genkit-ai/mcp npm ranking history: currently #1662 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 84, #2 (overall #1,662)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 19, #17 (overall #377)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (156)
Recent weekly downloads observations for @genkit-ai/mcp
Date (UTC)Weekly downloadsChange vs. previous
3,639-163
3,802+82
3,720+106
3,614+108
3,5060
3,506-324
3,830-5
3,835-390
4,225-701
4,926-289
5,215-3
5,218+157
5,061-20
5,081—

Similar npm MCP servers plugins

All 20 @genkit-ai/mcp alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@genkit-ai/mcp. First seen Oct 21, 2026; last successful collection Oct 28, 2026. See the methodology.