marketing
Later MCP Integration for LangChain
Connect Later to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Later 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.
Later MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-later": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=later",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=later --write=deny Why Use KosmoKrator Here
Expose only Later 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.
Later Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Later integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__later__later_list_profiles | later.later_list_profiles | Read | List all social media profiles connected to the Later account. Returns profile IDs, platform types, and display names. |
integration__later__later_get_profile | later.later_get_profile | Read | Get details of a specific social media profile in Later by its ID. Returns profile platform type, display name, and account metadata. |
integration__later__later_list_posts | later.later_list_posts | Read | List scheduled and published posts in Later. Optionally filter by profile ID, status (scheduled, published, draft), and paginate results. |
integration__later__later_create_post | later.later_create_post | Write | Create and schedule a new social media post in Later. Provide the caption text, target profile IDs, and optionally a scheduled time or media URL. |
integration__later__later_list_media | later.later_list_media | Read | List media items in the Later media library. Returns media IDs, URLs, types, and metadata. Optionally filter by media type. |
integration__later__later_get_media | later.later_get_media | Read | Get details of a specific media item in Later by its ID. Returns the media URL, type, dimensions, and metadata. |
integration__later__later_get_current_user | later.later_get_current_user | Read | Get the currently authenticated Later user profile. Returns the user name, email, and account info. |