Answers questions about the Vercel AI SDK by searching and querying its official documentation, returning responses grounded in the docs.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add vercel-ai-docs --env GOOGLE_GENERATIVE_AI_API_KEY='<GOOGLE_GENERATIVE_AI_API_KEY>' -- node ABSOLUTE_PATH_TO_PROJECT/dist/main.js~/.codex/config.toml
[mcp_servers.vercel-ai-docs]
command = "node"
args = ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"]
env = { GOOGLE_GENERATIVE_AI_API_KEY = "<GOOGLE_GENERATIVE_AI_API_KEY>" }
# codex mcp add vercel-ai-docs --env GOOGLE_GENERATIVE_AI_API_KEY='<GOOGLE_GENERATIVE_AI_API_KEY>' -- node ABSOLUTE_PATH_TO_PROJECT/dist/main.js~/.cursor/mcp.json
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_PROJECT/dist/main.js"
],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "<GOOGLE_GENERATIVE_AI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"vercel-ai-docs": {
"type": "stdio",
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_PROJECT/dist/main.js"
],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "<GOOGLE_GENERATIVE_AI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_PROJECT/dist/main.js"
],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "<GOOGLE_GENERATIVE_AI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_PROJECT/dist/main.js"
],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "<GOOGLE_GENERATIVE_AI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_PROJECT/dist/main.js"
],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "<GOOGLE_GENERATIVE_AI_API_KEY>"
}
}
}
}Environment variables
GOOGLE_GENERATIVE_AI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.