mcpField
Q
Quick Start with Langchain and the Github MCP Server

Quick Start with Langchain and the Github MCP Server

github.com/marlenezwFrameworks & SDKs25Updated 85w ago

About Quick Start with Langchain and the Github MCP Server

A Python quick-start guide showing how to integrate the GitHub MCP server with LangChain MCP Adapters. Uses LangChain Azure and GitHub Models for free LLM prototyping.

Key features

  1. 01GitHub MCP server integration
  2. 02LangChain adapter support
  3. 03Docker local execution
  4. 04Free LLM prototyping

Use cases

  1. 01GitHub data access and operations
  2. 02LLM application prototyping
  3. 03Containerized development

MCP support

Client example connecting the GitHub MCP server and exposing its capabilities to LLMs via LangChain adapters.

Details

From the project README

Quick Start with Langchain and the Github MCP Server

This Python code gets you started with the MCP Github Server and Langchain MCP Adapters This package uses langchain-azure with Github Models to prototype with LLMs for free :)

To run the server locally with docker you should:

  1. Install docker
  2. Clone the mcp server repo
    git clone https://github.com/modelcontextprotocol/servers.git
    cd servers
    
  3. Build the docker image
    docker build -t mcp/github -f src/github/Dockerfile .
    
  4. Install the requirements and run the Python script

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.