authentication
reCAPTCHA MCP Integration for LangChain
Connect reCAPTCHA to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect reCAPTCHA 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.
reCAPTCHA MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-recaptcha": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=recaptcha",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=recaptcha --write=deny Why Use KosmoKrator Here
Expose only reCAPTCHA 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.
reCAPTCHA Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the reCAPTCHA integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__recaptcha__recaptcha_list_assessments | recaptcha.recaptcha_list_assessments | Read | List reCAPTCHA Enterprise assessments for a Google Cloud project. Returns assessment names, scores, token properties, and event details. Supports pagination with page size and page token. |
integration__recaptcha__recaptcha_get_assessment | recaptcha.recaptcha_get_assessment | Read | Get a single reCAPTCHA Enterprise assessment by its full resource name. Returns the score, token properties, event details, and risk analysis. |
integration__recaptcha__recaptcha_create_assessment | recaptcha.recaptcha_create_assessment | Write | Create a reCAPTCHA Enterprise assessment to evaluate a reCAPTCHA token. Provide the project parent, the token to evaluate, and the site key. Returns score, token validity, and action verification. |
integration__recaptcha__recaptcha_list_keys | recaptcha.recaptcha_list_keys | Read | List reCAPTCHA Enterprise site keys for a Google Cloud project. Returns key names, display names, web settings, and integration type. Supports pagination. |
integration__recaptcha__recaptcha_get_key | recaptcha.recaptcha_get_key | Read | Get a reCAPTCHA Enterprise site key by its full resource name. Returns the key configuration including web, Android, and iOS settings. |
integration__recaptcha__recaptcha_list_annotations | recaptcha.recaptcha_list_annotations | Read | List annotations for a reCAPTCHA Enterprise assessment. Annotations provide feedback on assessment results (LEGITIMATE, FRAUDULENT, etc.) to improve model accuracy. Supports pagination. |
integration__recaptcha__recaptcha_get_current_user | recaptcha.recaptcha_get_current_user | Read | Get information about the current reCAPTCHA Enterprise API access. Returns the list of accessible projects to verify connectivity. |