Awesome AI AgentsAI Agent Gateway

langchain-ai/langchainjs-mcp-adapters

⭐ 248 TypeScript added to this list on 2025-05-06 repository created 2025-03-03

The LangChain.js MCP Adapters project provides a set of adapters designed to integrate Model Context Protocol (MCP) tools with LangChain.js applications. It supports multiple transport options including stdio for local connections and Server-Sent Events (SSE) for remote connections, with features such as custom headers for authentication and configurable reconnection strategies. The adapters enable connection to multiple MCP servers simultaneously, allowing tools to be organized by server or accessed as a unified collection. Configuration is simplified through JSON files. The project is compatible with LangChain.js and LangGraph.js, optimized for models from OpenAI, Anthropic, and Google, and supports rich content responses including text, images, and embedded resources. It includes development features like debug logging, flexible configuration, and robust error handling. Installation is straightforward via npm, with optional dependencies for enhanced SSE support. The project provides examples demonstrating how to manage MCP clients, connect to multiple servers, and use the tools with LangChain agents. It supports tool configuration options such as error handling preferences and naming conventions for tools. Response handling is versatile, accommodating plain text, base64-encoded images, and other embedded resources. The adapters also implement reconnection strategies for both stdio and SSE transports to ensure reliable communication. Overall, this project facilitates seamless integration of MCP tools into LangChain.js environments, enhancing the capabilities of language model applications by enabling them to leverage external tools and services efficiently.

https://github.com/langchain-ai/langchainjs-mcp-adapters

adaptersagent-toolsai-toolsanthropicdebug-loggingembedded-resourceserror-handlinggoogle-modelsjavascriptlangchainlangchain.jslangchainjslanggraph.jslanguage-model-integrationllm-agentsllm-integrationllm-toolsmcpmodel-context-protocolmulti-server-managementnpmopenaiopenai-functionsreconnection-strategiesrich-content-responsessse-transportstdio-transporttool-configurationtypescript

Also in AI Agent Gateway

diegosouzapw/OmniRoute

OmniRoute is a free AI gateway that consolidates over 237 AI providers, including 90+ free tiers, into a single endpoint, offering token compression and smart auto-fallback for various AI tools.

simstudioai/sim

Sim Studio is an open-source platform for building, testing, and optimizing AI agent workflows with flexible deployment options including cloud and self-hosting.

decolua/9router

9Router is a FREE AI router and token saver that connects various AI coding tools to over 40 providers and 100+ models, with features like auto-fallback and token compression.

mastra-ai/mastra

Mastra is a TypeScript AI agent framework that enables rapid development of AI applications with support for multiple LLMs, advanced agents, workflows, RAG, integrations, and automated evaluations.

TransformerOptimus/SuperAGI

SuperAGI is an open-source autonomous AI agent framework that enables developers to build, manage, and deploy scalable and efficient autonomous AI agents with extensible capabilities through toolkits and a user-friendly interface.

casdoor/casdoor

Casdoor is an open-source, AI-first Identity and Access Management (IAM) / LLM MCP gateway and authentication server with a web UI and broad protocol support.

Arize-ai/phoenix

Phoenix is an open-source AI observability platform that enables tracing, evaluation, and optimization of large language model applications across various deployment environments.

corsairdev/corsair

Open-source product integration platform with a single REST API syntax for connecting agents, backend services, and dashboards to third-party apps.