← Back to directory
G

Google Gen AI SDK

Official
Framework / SDK
A Gemini and Vertex AI SDK for TypeScript and JavaScript.

This is a framework for building MCP servers or agents, not a server you connect a client to.

Category
Dev Tools #742 of 751
Stars
★ 1.7k Very popular
Runtime
Node.js 22+
Credentials
API key / credential required
License
Apache-2.0
Last commit
22FMRS · D

The source describes the Google Gen AI SDK, not a confirmed MCP server. The README only documents an experimental MCP client integration example; the manifest is unavailable, so tools, transport, client compatibility, and MCP installation configuration cannot be confirmed.

Strongest · Maintenance 8/20 Weakest · Reliability 0/20

Reliability
0/20
Security and permissions
7/20
Maintenance
8/20
Documentation
5/20
Setup experience
2/20
Why each score
Reliability 0/20
The README describes a Gemini and Vertex AI JavaScript/TypeScript SDK, not an MCP server. Its only relevant material is an experimental example that connects an external MCP client to the SDK. No server manifest is provided, and there is no evidence of this repository's server initialization, tool list, or tool behavior. The handshake and reliability therefore cannot be verified, so the score reflects the absence of evidence for the requested capability.
Security and permissions 7/20
The README warns against exposing API keys in client-side code and shows an stdio connection to an external MCP server. This reveals some credential guidance and connection context, but there is no MCP server implementation to assess for permission scope, data flow, isolation, or confirmation of dangerous operations. Those controls remain unverified, so the score is low; the supplied material does not show a red-line behavior.
Maintenance 8/20
The supplied material identifies an Apache-2.0 license and says the repository is not archived, but provides no release history, commit activity, issue response, dependency update, or security response evidence. The license and non-archived status are limited positive signals; missing evidence for the other maintenance criteria keeps the score low.
Documentation 5/20
The README documents SDK installation, initialization, authentication, and several API examples, and labels MCP support experimental. It does not document an MCP server's tools, parameters, limits, costs, or troubleshooting. Since the documentation is for a different capability than the server under review, it earns only limited credit.
Setup experience 2/20
The README gives an npm installation step and Node.js prerequisite for the SDK, plus code that connects to an external MCP server. It does not provide instructions to start this repository as an MCP server, configure a client for it, or establish a working server connection. The available evidence therefore supports only a very low setup score.

Static review · not runReviewed 2026-12-04

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers integrating the Gemini Developer API or Gemini platform into TypeScript or JavaScript applications.
  • Projects that need model interactions, streaming, multimodal input or output, or tool calling.

Not for

  • Users looking for an MCP server, server manifest, or ready-made MCP tools to connect to an MCP client.
  • Users who do not use the TypeScript or JavaScript SDK or do not intend to access Gemini services.

Required permissions

  • The Gemini Developer API requires an API key.
  • The Gemini platform generally requires a Google Cloud project, billing, the Vertex AI API, and Google Cloud authentication; available options depend on the service and runtime.

Risks and side effects

  • The README warns against exposing API keys in client-side code and recommends server-side implementations in production.
  • The README labels built-in MCP support as experimental.
  • The README says SDK 3.0.0 and later require Node.js 22 or later and lists upcoming API removals; upgrades may require code migration.
  • Models, quotas, and pricing differ between the services.

Setup

Before you start

Runtime:Node.js 22+

GEMINI_API_KEY requiredsecret API key for the Gemini Developer API; obtain one from Google AI Studio.
GOOGLE_API_KEY requiredsecret API key for the Gemini Developer API; obtain one from Google AI Studio.
Other optional settings (4)
GOOGLE_GENAI_USE_ENTERPRISE optional Set to true in Node.js to select the Gemini platform.
GOOGLE_CLOUD_PROJECT optional Google Cloud project ID used with the Gemini platform.
GOOGLE_CLOUD_LOCATION optional Location used with the Gemini platform, such as us-central1.
GOOGLE_GENAI_API_VERSION optional Optional API version selection; in Node.js it can override the default version.

The README shows installing the SDK with npm using @google/genai. The Gemini Developer API requires an API key; the Gemini platform requires Google Cloud project, location, and authentication configuration. The README requires Node.js 22 or later and recommends the Interactions API for new code.

Troubleshooting

  1. Check that the Node.js version meets the requirements for the SDK version in use.
  2. Verify the API key or Google Cloud authentication, project, location, billing status, and Vertex AI API configuration.
  3. Check that the selected model, endpoint, and API version apply to the chosen service.
  4. For upgrade issues, review the README's listed removals and migration guidance; pin the SDK version to avoid unexpected updates.

Use cases

Build TypeScript or JavaScript applications with the Gemini API.
Use Gemini models with text, image, audio, video, or PDF input and generate text or multimodal output.
Implement streaming responses, multi-turn conversations, structured output, and function calling in an application.

Overview

The Google Gen AI SDK provides TypeScript and JavaScript developers with interfaces to the Gemini Developer API and Gemini platform (called Vertex AI in the README). It is an SDK, not an MCP server. The README only mentions experimental support for passing a local MCP server to a model as a tool; it provides no manifest, tools, transport, or client configuration for this repository as an MCP server.

Similar servers

Source revision 4bfaaacefc55 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/js-genai.svg)](https://followmcp.com/en/servers/js-genai)