MCP Tool Langgraph Integration

MCP Tool Langgraph Integration

By paulrobello GitHub

MCP Tools Langraph Integration

ai mcp
Overview

What is MCP Tool Langgraph Integration?

MCP Tool Langgraph Integration is an example project that demonstrates how to integrate MCP endpoint tools into a Langgraph tool node, consisting of two nodes: agent and tool.

How to use MCP Tool Langgraph Integration?

To use this project, ensure you have Python 3.11 installed. You can run the project from the source using the command uv run mcp_langgraph_tools after setting up the necessary API keys in a .env file.

Key features of MCP Tool Langgraph Integration?

  • Integration of MCP tools with Langgraph.
  • Simple setup with Python 3.11.
  • Support for Brave Search tools through the MCP Server.

Use cases of MCP Tool Langgraph Integration?

  1. Integrating AI tools into applications using Langgraph.
  2. Building custom agent-tool interactions for various applications.
  3. Utilizing Brave Search tools in conjunction with AI models.

FAQ from MCP Tool Langgraph Integration?

  • What are the prerequisites for using this project?

You need Python 3.11, and it's recommended to use the uv package for running the project.

  • How do I obtain the necessary API keys?

You can get a free API key for Brave Search from https://brave.com/search/api/ and you will need an API key for the AI provider, which can be set in the .env file.

  • Is this project open for contributions?

Yes! Contributions are welcome, and you can submit a Pull Request.

Content

MCP Tool Langgraph Integration

Description

Example project of how to integrate MCP endpoint tools into a Langgraph tool node

The graph consists of only 2 nodes, agent and tool.

Prerequisites

To use this project, make sure you have Python 3.11.

Linux and Mac

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

MCP Server requirements

  • This example uses the MCP Server sample @modelcontextprotocol/server-brave-search to add Brave Search tools. This requires that you have node and npx installed.

API Keys

  • The MCP Server sample used is for Brave Search, you can get a free API key from https://brave.com/search/api/
  • You will need and API key for the chosen AI provider which defaults to Anthropic but can be changed by editing the __main__.py file
  • Put all api keys in a .env file in the repository root.

From source Usage

uv run mcp_langgraph_tools

Multiple MCP servers at one time

Check the multi_server branch for a more advanced example of how to use multiple MCP servers at once.

Whats New

  • Version 0.1.0:
    • Initial release

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Paul Robello - probello@gmail.com

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details