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. - Direct Documentation Search: Query the Vercel AI SDK documentation index directly using similarity search -
Add this skill
npx mdskills install IvanAmador/vercel-ai-docs-mcpWell-documented MCP server for Vercel AI SDK docs with multi-client setup guides and comprehensive tooling
1# Vercel AI SDK Documentation MCP Agent23A 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.45[](https://modelcontextprotocol.io)6[](https://www.typescriptlang.org/)7[](https://nodejs.org/)89## Features1011- **Direct Documentation Search**: Query the Vercel AI SDK documentation index directly using similarity search12- **AI-Powered Agent**: Ask natural language questions about the Vercel AI SDK and receive comprehensive answers13- **Session Management**: Maintain conversation context across multiple queries14- **Automated Indexing**: Includes tools to fetch, process, and index the latest Vercel AI SDK documentation1516## Architecture1718This system consists of several key components:19201. **MCP Server**: Exposes tools via the Model Context Protocol for integration with AI assistants212. **DocumentFetcher**: Crawls and processes the Vercel AI SDK documentation223. **VectorStoreManager**: Creates and manages the FAISS vector index for semantic search234. **AgentService**: Provides AI-powered answers to questions using the Google Gemini model245. **DirectQueryService**: Offers direct semantic search of the documentation2526## Setup Instructions2728### Prerequisites2930- Node.js 18+31- npm32- A Google API key for Gemini model access3334### Environment Variables3536Create a `.env` file in the project root with the following variables:3738```39GOOGLE_GENERATIVE_AI_API_KEY=your-google-api-key-here40```4142You'll need to obtain a Google Gemini API key from the [Google AI Studio](https://makersuite.google.com/app/apikey).4344### Installation45461. Clone the repository47 ```48 git clone https://github.com/IvanAmador/vercel-ai-docs-mcp.git49 cd vercel-ai-docs-mcp-agent50 ```51522. Install dependencies53 ```54 npm install55 ```56573. Build the project58 ```59 npm run build60 ```61624. Build the documentation index63 ```64 npm run build:index65 ```66675. Start the MCP server68 ```69 npm run start70 ```7172## Integration with Claude Desktop7374[Claude Desktop](https://www.anthropic.com/claude/download) is a powerful AI assistant that supports MCP servers. To connect the Vercel AI SDK Documentation MCP agent with Claude Desktop:75761. First, install [Claude Desktop](https://www.anthropic.com/claude/download) if you don't have it already.77782. Open Claude Desktop settings (via the application menu, not within the chat interface).79803. Navigate to the "Developer" tab and click "Edit Config".81824. Add the Vercel AI Docs MCP server to your configuration:8384```json85{86 "mcpServers": {87 "vercel-ai-docs": {88 "command": "node",89 "args": ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"],90 "env": {91 "GOOGLE_GENERATIVE_AI_API_KEY": "your-google-api-key-here"92 }93 }94 }95}96```9798Make sure to replace:99- `ABSOLUTE_PATH_TO_PROJECT` with the actual path to your project folder100- `your-google-api-key-here` with your Google Gemini API key1011025. Save the config file and restart Claude Desktop.1031046. To verify the server is connected, look for the hammer ๐จ icon in the Claude chat interface.105106For more detailed information about setting up MCP servers with Claude Desktop, visit the [MCP Quickstart Guide](https://modelcontextprotocol.io/quickstart/user).107108## Integration with Other MCP Clients109110This MCP server is compatible with any client that implements the Model Context Protocol. Here are a few examples:111112### Cursor113114[Cursor](https://cursor.sh/) is an AI-powered code editor that supports MCP servers. To integrate with Cursor:1151161. 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).1171182. Add the following to your configuration file:119120```json121{122 "mcpServers": {123 "vercel-ai-docs": {124 "command": "node",125 "args": ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"],126 "env": {127 "GOOGLE_GENERATIVE_AI_API_KEY": "your-google-api-key-here"128 }129 }130 }131}132```133134For more information about using MCP with Cursor, refer to the [Cursor MCP documentation](https://modelcontextprotocol.io/example-clients/).135136## Usage137138The MCP server exposes three primary tools:139140### 1. agent-query141142Query the Vercel AI SDK documentation using an AI agent that can search and synthesize information.143144```json145{146 "name": "agent-query",147 "arguments": {148 "query": "How do I use the streamText function?",149 "sessionId": "unique-session-id"150 }151}152```153154### 2. direct-query155156Perform a direct similarity search against the Vercel AI SDK documentation index.157158```json159{160 "name": "direct-query",161 "arguments": {162 "query": "streamText usage",163 "limit": 5164 }165}166```167168### 3. clear-memory169170Clears the conversation memory for a specific session or all sessions.171172```json173{174 "name": "clear-memory",175 "arguments": {176 "sessionId": "unique-session-id"177 }178}179```180181To clear all sessions, omit the sessionId parameter.182183## Development184185### Project Structure186187```188โโโ config/ # Configuration settings189โโโ core/ # Core functionality190โ โโโ indexing/ # Document indexing and vector store191โ โโโ query/ # Query services (agent and direct)192โโโ files/ # Storage directories193โ โโโ docs/ # Processed documentation194โ โโโ faiss_index/ # Vector index files195โ โโโ sessions/ # Session data196โโโ mcp/ # MCP server and tools197โ โโโ server.ts # MCP server implementation198โ โโโ tools/ # MCP tool definitions199โโโ scripts/ # Build and utility scripts200โโโ utils/ # Helper utilities201```202203### Build Scripts204205- `npm run build`: Compile TypeScript files206- `npm run build:index`: Build the documentation index207- `npm run dev:index`: Build and index in development mode208- `npm run dev`: Build and start in development mode209210## Troubleshooting211212### Common Issues2132141. **Index not found or failed to load**215216 Run `npm run build:index` to create the index before starting the server.2172182. **API rate limits**219220 When exceeding Google API rate limits, the agent service may return errors. Implement appropriate backoff strategies.2212223. **Model connection issues**223224 Ensure your Google API key is valid and has access to the specified Gemini model.2252264. **Claude Desktop not showing MCP server**227228 - Check your configuration file for syntax errors.229 - Make sure the path to the server is correct and absolute.230 - Check Claude Desktop logs for errors.231 - Restart Claude Desktop after making configuration changes.232233## Contributing234235Contributions are welcome! Please feel free to submit a Pull Request.236237## License238239MIT240
Full transparency โ inspect the skill content before installing.