vercel-ai-docs-mcp
Provides AI-powered search and querying for the Vercel AI SDK documentation, allowing users to ask questions and receive contextualized responses based on the official documentation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vercel-ai-docs-mcpHow do I use the streamText function?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
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
Related MCP server: RAG Documentation MCP Server
Architecture
This system consists of several key components:
MCP Server: Exposes tools via the Model Context Protocol for integration with AI assistants
DocumentFetcher: Crawls and processes the Vercel AI SDK documentation
VectorStoreManager: Creates and manages the FAISS vector index for semantic search
AgentService: Provides AI-powered answers to questions using the Google Gemini model
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-hereYou'll need to obtain a Google Gemini API key from the Google AI Studio.
Installation
Clone the repository
git clone https://github.com/IvanAmador/vercel-ai-docs-mcp.git cd vercel-ai-docs-mcp-agentInstall dependencies
npm installBuild the project
npm run buildBuild the documentation index
npm run build:indexStart 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:
First, install Claude Desktop if you don't have it already.
Open Claude Desktop settings (via the application menu, not within the chat interface).
Navigate to the "Developer" tab and click "Edit Config".
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_PROJECTwith the actual path to your project folderyour-google-api-key-herewith your Google Gemini API key
Save the config file and restart Claude Desktop.
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:
Add a
.cursor/mcp.jsonfile to your project directory (for project-specific configuration) or a~/.cursor/mcp.jsonfile in your home directory (for global configuration).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 utilitiesBuild Scripts
npm run build: Compile TypeScript filesnpm run build:index: Build the documentation indexnpm run dev:index: Build and index in development modenpm run dev: Build and start in development mode
Troubleshooting
Common Issues
Index not found or failed to load
Run
npm run build:indexto create the index before starting the server.API rate limits
When exceeding Google API rate limits, the agent service may return errors. Implement appropriate backoff strategies.
Model connection issues
Ensure your Google API key is valid and has access to the specified Gemini model.
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.2362MIT
- AlicenseAqualityDmaintenanceProvides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.7231MIT
- AlicenseBquality-maintenanceProvides AI agents with access to Statly SDK and API documentation, enabling search across docs, retrieval of language-specific SDK references, code examples, and REST API information.4
- Alicense-qualityDmaintenanceEnables AI assistants to search and retrieve information from Teleport documentation using a vector database. It provides a tool for semantic vector search over pre-populated embeddings of Teleport pages and examples to assist with technical queries.1MIT
Related MCP Connectors
Search @imqueue docs and scaffold typed services & clients from your AI coding agent.
Search your knowledge bases from any AI assistant using hybrid RAG.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation forβ¦
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/IvanAmador/vercel-ai-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server