MCP math and weather example servers with a LangGraph agent

MCP math and weather example servers with a LangGraph agent

mcp-langgraph•byhirokiyn

A minimal example combining a LangGraph agent with MCP servers that supply math and weather tools.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides example MCP servers for math and weather that expose tools to an agent.
  • •Uses LangGraph to manage agent state and message routing between the chatbot and tools.
  • •Offers a command-line interface for interacting with the agent.

BEST FOR

  • •Developers who want a starting skeleton for building a LangGraph agent that uses MCP servers as tools.
  • •Learning how MCP servers integrate as tools in a LangGraph agent workflow.

ABOUT MCP-LANGGRAPH

MCP math and weather example servers with a LangGraph agent is cataloged as an MCP server attributed to hirokiyn. A minimal example combining a LangGraph agent with MCP servers that supply math and weather tools. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP math and weather example servers with a LangGraph agent are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the set of MCP servers used by the agent be changed?

Yes, the MCP servers are configured in src/main.py and the configuration can be modified to add or remove servers.

Upstream README

View this exact version on GitHub

README.md · f090245a115e · Fetched 2026-11-13 13:28:39 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP + LangGraph Agent

This is a minimal, functional example of an agent powered by LangGraph with tools implemented using MCP (Model Context Protocol) servers instead of traditional LangChain tools. It's based on the official LangGraph tutorial, adapted to demonstrate how to integrate MCP servers as tools.

🧠 Use this repo as a skeleton to quickly build your own LangGraph agent with MCP tools!

Features

flowchart TD
    __start__ --> chatbot
    chatbot -.-> tools
    chatbot -.-> __end__
    tools --> chatbot
  • Integrates LangGraph for managing agent state and message routing.
  • Uses MCP servers to provide access to tools.
  • Includes example MCP servers for math and weather.
  • Provides a command-line interface for interacting with the agent.

Installation

  1. Clone the repository:

    git clone <repository_url>
    
  2. Install the dependencies using Poetry:

    poetry install
    

Usage

  1. Set the Anthropic API key in the .env file. You may need to create this file if it doesn't exist. For example:

    ANTHROPIC_API_KEY=your_api_key
    
  2. Start the MCP servers:

    • Math server: python src/mcp_servers/math_server.py
    • Weather server: python src/mcp_servers/weather_server.py
  3. Run the agent:

    poetry run main
    

    This will start the agent in interactive mode. You can then enter prompts, and the agent will respond using the tools provided by the MCP servers.

Example

User: What's (3 + 5) x 12?
Assistant: The result of (3 + 5) × 12 = 96
User: What is the weather in New York?
Assistant: It's always sunny in New York.

MCP Server Configuration

The MCP servers are configured in src/main.py. You can modify the configuration to add or remove servers, or to change the transport mechanism.

LLM Configuration

The LLM used by the agent can be changed in src/common.py.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP math and weather example servers with a LangGraph agent from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-langgraph)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent