Genkit MCP
Provides integration between Genkit and the Model Context Protocol (MCP).
Tools
echo
Echoes back the input
add
Adds two numbers
printEnv
Prints all environment variables, helpful for debugging MCP server configuration
longRunningOperation
Demonstrates a long running operation with progress updates
sampleLLM
Samples from an LLM using MCP's sampling feature
getTinyImage
Returns the MCP_TINY_IMAGE
README

Genkit is a framework for building AI-powered applications. It provides open source libraries for Node.js and Go, along with tools to help you debug and iterate quickly.
Learn more in our documentation for Node.js and Go.
What can you build with Genkit?
Genkit is a versatile framework, which you can use to build many different types of AI applications. Common use cases include:
-
Intelligent agents: Create agents that understand user requests and perform tasks autonomously, such as personalized travel planning or itinerary generation.
- Example: Compass Travel Planning App
-
Data transformation: Convert unstructured data, like natural language, into structured formats (e.g., objects, SQL queries, tables) for integration into your app or data pipeline.
-
Retrieval-augmented generation: Create apps that provide accurate and contextually relevant responses by grounding generation with your own data sources, such as chatbots or question answering systems.
Who should use Genkit?
Genkit is built for developers seeking to add generative AI to their apps with Node.js or Go, and can run anywhere these runtimes are supported. It's designed around a plugin architecture that can work with any generative model API or vector database, with many integrations already available.
While developed by the Firebase team, Genkit can be used independently of Firebase or Google Cloud services.
Get started
[!NOTE] Genkit for Go is in alpha, so we only recommend it for prototyping.
Library key features
-
Unified generation API: Generate text, media, structured objects, and tool calls from any generative model using a single, adaptable API.
-
Vector database support: Add retrieval-augmented generation (RAG) to your apps with simple indexing and retrieval APIs that work across vector database providers.
-
Enhanced prompt engineering: Define rich prompt templates, model configurations, input/output schemas, and tools all within a single, runnable .prompt file.
-
AI workflows: Organize your AI app logic into Flows - functions designed for observability, streaming, integration with Genkit devtools, and easy deployment as API endpoints.
-
Built-in streaming: Stream content from your Genkit API endpoints to your client app to create snappy user experiences.
Development tools
Genkit provides a CLI and a local UI to streamline your AI development workflow.
CLI
The Genkit CLI includes commands for running and evaluating your Genkit functions (flows) and collecting telemetry and logs.
- Install:
npm i -g genkit - Run a command, wrapped with telemetry, a interactive developer UI, etc:
genkit start -- <command to run your code>
Developer UI
The Genkit developer UI is a local interface for testing, debugging, and iterating on your AI application.
Key features:
- Run: Execute and experiment with Genkit flows, prompts, queries, and more in dedicated playgrounds.
- Inspect: Analyze detailed traces of past executions, including step-by-step breakdowns of complex flows.
- Evaluate: Review the results of evaluations run against your flows, including performance metrics and links to relevant traces.
<img src="docs/resources/readme-ui-traces-screenshot.png" width="700" alt="Screenshot of Genkit Developer UI showing traces">
Plugin ecosystem
Extend Genkit with plugins for specific AI models, vector databases, and platform integrations from providers like Google and OpenAI.
- Node.js plugins: Explore on npm
- Go plugins: Explore on pkg.go.dev
Create and share your own plugins:
- Write Node.js plugins: Plugin Authoring Guide
- Write Go plugins: Plugin Authoring Guide
Find excellent examples of community-built plugins for OpenAI, Anthropic, Cohere, and more in this repository.
Try Genkit on IDX
Want to skip the local setup? Click below to try out Genkit using Project IDX, Google's AI-assisted workspace for full-stack app development in the cloud.
<a href="https://idx.google.com/new/genkit"> <img height="32" alt="Try in IDX" src="https://cdn.idx.dev/btn/try_purple_32.svg"> </a>
Sample apps
Take a look at some samples of Genkit in use:
- "AI barista" -- demonstrates simple LLM usage
- A simple chatbot with a JavaScript frontend -- add history to LLM sessions
- Restaurant menu Q&A app -- this sample shows progressively more sophisticated versions of a menu understanding app.
- Streaming to an Angular frontend
- js-schoolAgent: A simple school assistant system with a routing agent and specialized agents
- Prompts: Shows off several prompting techniques
Connect with us
-
Join the community: Stay updated, ask questions, and share your work with other Genkit users on our Discord server.
-
Provide feedback: Report issues or suggest new features using our GitHub issue tracker.
Contributing
Contributions to Genkit are welcome and highly appreciated! See our Contribution Guide to get started.
Authors
Genkit is built by Firebase with contributions from the Open Source Community.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.