productivity
Google Translate MCP Integration for Vercel AI SDK
Connect Google Translate to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Google Translate to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Google Translate MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-google-translate": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google-translate",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=google-translate --write=deny Why Use KosmoKrator Here
Expose only Google Translate instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Google Translate Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Google Translate integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__google_translate__google_translate_translate_text | google-translate.google_translate_translate_text | Write | Translate text using Google Cloud Translation. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language. |
integration__google_translate__google_translate_detect_language | google-translate.google_translate_detect_language | Read | Detect the language of text using Google Cloud Translation. Returns detected language codes and confidence scores. |
integration__google_translate__google_translate_list_supported_languages | google-translate.google_translate_list_supported_languages | Read | List languages supported by Google Cloud Translation. Returns language codes and names. Optionally specify a target language to localize language names. |
integration__google_translate__google_translate_list_glossaries | google-translate.google_translate_list_glossaries | Read | List all glossaries in your Google Cloud Translation project. Returns glossary names, language pairs, and entry counts. |
integration__google_translate__google_translate_get_glossary | google-translate.google_translate_get_glossary | Read | Get details of a specific Google Cloud Translation glossary by name. Returns glossary name, language pair, entry count, and timestamps. |
integration__google_translate__google_translate_create_glossary | google-translate.google_translate_create_glossary | Write | Create a new Google Cloud Translation glossary. Glossaries define custom translations for specific terms. Provide term pairs as an array of source/target strings. |
integration__google_translate__google_translate_get_current_user | google-translate.google_translate_get_current_user | Read | Verify the Google Cloud Translation API key and get connection information. Confirms the API key is valid and the service is reachable. |