Langgraph

Productivity and workflow

LangGraph solution template for MCP.

Your AI app calls the Langgraph MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Langgraph

Langgraph is a community MCP server from esxr, filed in our directory under productivity and workflow. LangGraph solution template for MCP.

At a glance

Publisher
esxr (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
585

How to set up Langgraph

  1. Follow the install steps in the Langgraph README; it is written in Python, so have that toolchain ready.
  2. Check the Langgraph README for keys or settings; the registry lists none that Langgraph requires.
  3. Add Langgraph to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Langgraph tools to confirm the connection.
  5. Run one read-only task with Langgraph first, and keep your app asking before each tool call until the results look right.

Langgraph compared with similar servers

  • Todoist by todoist has fewer GitHub stars than Langgraph (569 against 585); both are community servers, and Todoist runs as a remote server and Langgraph runs on your own machine.
  • Pandoc by vivekVells has more GitHub stars than Langgraph (586 against 585); both are community servers, and both run locally.
  • Tda by irockel has fewer GitHub stars than Langgraph (555 against 585); both are community servers, and both run locally.

Before you connect Langgraph

  • Give Langgraph its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Langgraph tool call until you trust what it does with them.
  • Treat text that Langgraph fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Langgraph on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Langgraph

How marketing and sales teams put Langgraph to work, by company size. Pick the size closest to yours and start Langgraph on one use case.

Small business

  • A busy owner can use Langgraph to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Langgraph what slipped last week and which campaign tasks have no owner yet.
  • Langgraph runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Langgraph to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Langgraph to see where work piles up across projects and move it before deadlines slip.
  • Start Langgraph on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Langgraph to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Langgraph scoped access per workspace, so an agent helps one department without reading another's plans.
  • Langgraph is a community server, so have security review the code and pin a version before Langgraph touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Langgraph README

From esxr/langgraph-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Universal Assistant built with LangGraph and Model Context Protocol (MCP)

Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

LangGraph is a framework designed to enable seamless integration of language models into complex workflows and applications. It emphasizes modularity and flexibility. Workflows are represented as graphs. Nodes correspond to actions, tools, or model queries. Edges define the flow of information between them. LangGraph provides a structured yet dynamic way to execute tasks, making it ideal for writing AI applications involving natural language understanding, automation, and decision-making.

In this earlier article we enhanced LangGraph's retrieval agent template to develop and deploy an AI solution.

In this project, we combine LangGraph with MCP to build our own Universal Assistant. For our universal assistant we implement a multi-agent pattern as follows:

Assistant receives the user message and decides the agent to use. The agent node decides the right tool to use, and calls the tool on the MCP server. Since all our agents are based on MCP, a single MCP-Agent node is sufficient for LLM based orchestraion, and another single node is sufficient to work with MCP servers to invoke their tools.

Development Setup

  1. Create and activate a virtual environment

    git clone https://github.com/esxr/langgraph-mcp.git
    cd langgraph-mcp
    python3 -m venv .venv
    source .venv/bin/activate
    
  2. Install Langgraph CLI

    pip install -U "langgraph-cli[inmem]"
    

    Note: "inmem" extra(s) are needed to run LangGraph API server in development mode (without requiring Docker installation)

  3. Install the dependencies

    pip install -e .
    
  4. Configure environment variables

    cp env.example .env
    

    Add your OPENAI_API_KEY, GITHUB_PERSONAL_ACCESS_TOKEN etc. to the .env

    Note: We have added support for Milvus Lite Retriever (support file based URI). Milvus Lite won't work on Windows. For Windows you may need to use Milvus Server (Easy to start using Docker), and change the MILVUS_DB config to the server based URI. You may also enhance the retriever.py to add retrievers for your choice of vector databases!

Implementation Details

There are 3 main parts to our implementation:

  1. Building the Router
  2. The Assistant
  3. A generic MCP wrapper
Building the Router

Our graph to build the router is implemented in build_router_graph.py. It collects routing information based on tools, prompts, and resources offered by each MCP server using our mcp_wrapper.py. It indexes this routing information for each server in a vector database.

The Assistant

The assistant graph is implemented in assistant_graph.py. The following animation describes the role of various nodes and the flow of control thru it, with the help of an example

A Generic MCP Wrapper

mcp_wrapper.py employs a Strategy Pattern using an abstract base class (MCPSessionFunction) to define a common interface for executing various operations on MCP servers. The pattern includes:

  1. Abstract Interface:
    • MCPSessionFunction defines an async __call__ method as a contract for all session functions.
  2. Concrete Implementations:
    • RoutingDescription class implements fetching routing information based on tools, prompts, and resources.
    • GetTools class implements fetching tools for the MCP server and transforming them to the format consumable by LangGraph.
    • RunTool class implements invoking a tool on MCP server and returning its output.
  3. Processor Function:
    • apply serves as a unified executor. It:
    • Initializes a session using stdio_client from mcp library.
    • Delegates the actual operation to the provided MCPSessionFunction instance via await fn(server_name, session).
  4. Extensibility:
    • New operations can be added by subclassing MCPSessionFunction without modifying the cor e processor logic. for e.g. we should be able to add support for getting tools and executing tools using this pattern.

A Demonstration!

Here's an end to end video!

https://github.com/user-attachments/assets/cf5b9932-33a0-4627-98ca-022979bfb2e7

Questions about Langgraph

What is the Langgraph MCP server?

LangGraph solution template for MCP. Langgraph is maintained by esxr on GitHub at esxr/langgraph-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Langgraph MCP server?

Langgraph doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (esxr/langgraph-mcp). Like most servers, Langgraph ends with a command or URL you paste into your AI app's MCP config.

Does Langgraph need an API key?

The registry lists no required keys for Langgraph. Check the Langgraph README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Langgraph an official MCP server?

No. Langgraph is a community server maintained by esxr. Community servers can be excellent; read the code and the open issues before you give Langgraph access to company data.

What license is Langgraph under?

Langgraph is released under the MIT license, according to its GitHub repository. The license covers the code of Langgraph; the service it connects to has its own terms.