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 Stale · Oct 18, 2026

@genkit-ai/mcp has 5,152 recorded weekly downloads on npm, ranking #1139 of 2,391 tracked listings.

Weekly downloads
5,152
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1139
Among tracked npm listings

About @genkit-ai/mcp

Genkit MCP

See Genkit MCP documentation.

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-2.0-flash'),
    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-2.0-flash'), // 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.

All MCP actions (tools, prompts, resources) are namespaced.

  • For createMcpHost, the namespace is the key you provide for that server in the mcpServers configuration (e.g., localFs/read_file).
  • For createMcpClient, the namespace is the name you provide in its options (e.g., myFileSystemClient/list_resources).
Tool Responses…

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: 5,152 weekly downloads as of Oct 18, 2026.@genkit-ai/mcpWeekly downloads on npm · Last 90 days5,152downloads / week4.6K4.8K5K5.2K5.4K5.6K5.8KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@genkit-ai/mcp weekly downloads on npm, last 90 days: 5,152 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

@genkit-ai/mcp weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@genkit-ai/mcpWeekly downloads growth on npm5,152downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@genkit-ai/mcp weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@genkit-ai/mcp npm ranking history: currently #1139 (by weekly downloads).@genkit-ai/mcpnpm ranking · by weekly downloads · Last 90 days#1139current rank#1137#1138#1139#1140#1141Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 21, 2026 – Oct 21, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@genkit-ai/mcp npm ranking history: currently #1139 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 58, #9 (overall #1,149)
All npm: every listing in weekly downloads order

Listing placement

MCP servers300 listings · 15 pages · page 12, #15 (overall #235)
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 (1)
Recent weekly downloads observations for @genkit-ai/mcp
Date (UTC)Weekly downloadsChange vs. previous
5,152—

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 21, 2026. See the methodology.