Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A Model Context Protocol (MCP) server that provides AI-powered search and querying capabilities for the Vercel AI SDK documentation.

README.md

Vercel AI SDK Documentation MCP Agent

A Model Context Protocol (MCP) server that provides AI-powered search and querying capabilities for the Vercel AI SDK documentation. This project enables developers to ask questions about the Vercel AI SDK and receive accurate, contextualized responses based on the official documentation.

![MCP Compatible](https://modelcontextprotocol.io) ![TypeScript](https://www.typescriptlang.org/) ![Node.js](https://nodejs.org/)

Features

  • Direct Documentation Search: Query the Vercel AI SDK documentation index directly using similarity search
  • AI-Powered Agent: Ask natural language questions about the Vercel AI SDK and receive comprehensive answers
  • Session Management: Maintain conversation context across multiple queries
  • Automated Indexing: Includes tools to fetch, process, and index the latest Vercel AI SDK documentation

Architecture

This system consists of several key components:

  1. MCP Server: Exposes tools via the Model Context Protocol for integration with AI assistants
  2. DocumentFetcher: Crawls and processes the Vercel AI SDK documentation
  3. VectorStoreManager: Creates and manages the FAISS vector index for semantic search
  4. AgentService: Provides AI-powered answers to questions using the Google Gemini model
  5. DirectQueryService: Offers direct semantic search of the documentation

Setup Instructions

Prerequisites

  • Node.js 18+
  • npm
  • A Google API key for Gemini model access

Environment Variables

Create a .env file in the project root with the following variables:

GOOGLE_GENERATIVE_AI_API_KEY=your-google-api-key-here

You'll need to obtain a Google Gemini API key from the Google AI Studio.

Installation

  1. Clone the repository
   git clone https://github.com/IvanAmador/vercel-ai-docs-mcp.git
   cd vercel-ai-docs-mcp-agent
  1. Install dependencies
   npm install
  1. Build the project
   npm run build
  1. Build the documentation index
   npm run build:index
  1. Start the MCP server
   npm run start

Integration with Claude Desktop

Claude Desktop is a powerful AI assistant that supports MCP servers. To connect the Vercel AI SDK Documentation MCP agent with Claude Desktop:

  1. First, install Claude Desktop if you don't have it already.
  1. Open Claude Desktop settings (via the application menu, not within the chat interface).
  1. Navigate to the "Developer" tab and click "Edit Config".
  1. Add the Vercel AI Docs MCP server to your configuration:
{
  "mcpServers": {
    "vercel-ai-docs": {
      "command": "node",  
      "args": ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"],
      "env": {
        "GOOGLE_GENERATIVE_AI_API_KEY": "your-google-api-key-here"
      }
    }
  }
}

Make sure to replace:

  • ABSOLUTE_PATH_TO_PROJECT with the actual path to your project folder
  • your-google-api-key-here with your Google Gemini API key
  1. Save the config file and restart Claude Desktop.
  1. To verify the server is connected, look for the hammer 🔨 icon in the Claude chat interface.

For more detailed information about setting up MCP servers with Claude Desktop, visit the MCP Quickstart Guide.

Integration with Other MCP Clients

This MCP server is compatible with any client that implements the Model Context Protocol. Here are a few examples:

Cursor

Cursor is an AI-powered code editor that supports MCP servers. To integrate with Cursor:

  1. Add a .cursor/mcp.json file to your project directory (for project-specific configuration) or a ~/.cursor/mcp.json file in your home directory (for global configuration).
  1. Add the following to your configuration file:
{
  "mcpServers": {
    "vercel-ai-docs": {
      "command": "node",  
      "args": ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"],
      "env": {
        "GOOGLE_GENERATIVE_AI_API_KEY": "your-google-api-key-here"
      }
    }
  }
}

For more information about using MCP with Cursor, refer to the Cursor MCP documentation.

Usage

The MCP server exposes three primary tools:

1. agent-query

Query the Vercel AI SDK documentation using an AI agent that can search and synthesize information.

{
  "name": "agent-query",
  "arguments": {
    "query": "How do I use the streamText function?",
    "sessionId": "unique-session-id"
  }
}

2. direct-query

Perform a direct similarity search against the Vercel AI SDK documentation index.

{
  "name": "direct-query",
  "arguments": {
    "query": "streamText usage",
    "limit": 5
  }
}

3. clear-memory

Clears the conversation memory for a specific session or all sessions.

{
  "name": "clear-memory",
  "arguments": {
    "sessionId": "unique-session-id"
  }
}

To clear all sessions, omit the sessionId parameter.

Development

Project Structure

├── config/              # Configuration settings
├── core/                # Core functionality
│   ├── indexing/        # Document indexing and vector store
│   └── query/           # Query services (agent and direct)
├── files/               # Storage directories
│   ├── docs/            # Processed documentation
│   ├── faiss_index/     # Vector index files
│   └── sessions/        # Session data
├── mcp/                 # MCP server and tools
│   ├── server.ts        # MCP server implementation
│   └── tools/           # MCP tool definitions
├── scripts/             # Build and utility scripts
└── utils/               # Helper utilities

Build Scripts

  • npm run build: Compile TypeScript files
  • npm run build:index: Build the documentation index
  • npm run dev:index: Build and index in development mode
  • npm run dev: Build and start in development mode

Troubleshooting

Common Issues

  1. Index not found or failed to load

Run npm run build:index to create the index before starting the server.

  1. API rate limits

When exceeding Google API rate limits, the agent service may return errors. Implement appropriate backoff strategies.

  1. Model connection issues

Ensure your Google API key is valid and has access to the specified Gemini model.

  1. Claude Desktop not showing MCP server
  • Check your configuration file for syntax errors.
  • Make sure the path to the server is correct and absolute.
  • Check Claude Desktop logs for errors.
  • Restart Claude Desktop after making configuration changes.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.