ai
Together AI MCP Integration for LangChain
Connect Together AI to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Together AI to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Together AI MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-together-ai": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=together-ai",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=together-ai --write=deny Why Use KosmoKrator Here
Expose only Together AI 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.
Together AI Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Together AI integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__together_ai__togetherai_list_models | together-ai.togetherai_list_models | Read | List all available AI models on Together AI, including open-source and fine-tuned models. Returns model IDs, types, pricing, and capabilities. |
integration__together_ai__togetherai_create_completion | together-ai.togetherai_create_completion | Write | Create a chat completion using a Together AI model. Send a conversation with messages and receive a generated response. Supports models like Llama, Mixtral, Qwen, DBRX, and more. |
integration__together_ai__togetherai_list_fine_tunes | together-ai.togetherai_list_fine_tunes | Read | List all fine-tuning jobs on Together AI. Returns job IDs, status, base model, training file, and creation timestamps. |
integration__together_ai__togetherai_get_fine_tune | together-ai.togetherai_get_fine_tune | Read | Get details of a specific fine-tuning job on Together AI. Returns status, training progress, hyperparameters, and the output model ID once complete. |
integration__together_ai__togetherai_list_files | together-ai.togetherai_list_files | Read | List all files uploaded to Together AI. Returns file IDs, filenames, sizes, and purposes (e.g. fine-tune training data, results). |
integration__together_ai__togetherai_get_file | together-ai.togetherai_get_file | Read | Get details of a specific file on Together AI. Returns file metadata including name, size, purpose, and creation date. |
integration__together_ai__togetherai_get_current_user | together-ai.togetherai_get_current_user | Read | Get the authenticated Together AI user's account information, including name, email, and plan details. |