# ai

> MCP Client

The AI SDK is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Node.js. It provides a unified API to interact with model providers and UI hooks for building chatbots.

## Overview

- **Category:** AI
- **Language:** TypeScript
- **Stars:** 25855
- **Forks:** 2510
- **Owner:** vercel
- **GitHub:** https://github.com/vercel/ai
- **Homepage:** https://ai-sdk.dev
- **Created:** 2023-05-23T15:04:08+00:00
- **Updated:** 2025-07-07T16:12:58+00:00
- **Source:** https://model-context-protocol.com/clients/ai

## Setup

You will need Node.js 18+ and pnpm installed on your local development machine.

```shell
npm install ai
```

## Tools

### AI SDK Core

The [AI SDK Core](https://ai-sdk.dev/docs/ai-sdk-core/overview) module provides a unified API to interact with model providers like [OpenAI](https://ai-sdk.dev/providers/ai-sdk-providers/openai), [Anthropic](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic), [Google](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai), and more.

You will then install the model provider of your choice.

```shell
npm install @ai-sdk/openai
```

### AI SDK UI

The [AI SDK UI](https://ai-sdk.dev/docs/ai-sdk-ui/overview) module provides a set of hooks that help you build chatbots and generative user interfaces. These hooks are framework agnostic, so they can be used in Next.js, React, Svelte, and Vue.

You need to install the package for your framework:

```shell
npm install @ai-sdk/react
```
