MCP AI Chat LangChain
by badrinathvm
MCP AI Chat LangChain Example
A basic implementation of a Model Context Protocol (MCP) server that demonstrates core functionality, including tools and resources. This guide will walk you through the steps to initialize, inspect, and integrate the server.
Getting Started
Before you begin, ensure you have the following installed:
Python (Version 3.8 or later)
uv CLI
To verify your installation, run:
python --version
uv --versionInitialization
To initialize the project, navigate to a local folder of your choice and launch your terminal (PowerShell or CMD). Then, run:
uv init mcp-ai-chat-langchainCreate a virtual environment
uv venv --python 3.12.0To add a new dependency
uv add langchain-groq
uv addlangchain-openai
uv add mcp-useThis will set up the project directory and install the necessary dependencies.
To execute the project
uv run app.pyResources
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/badrinathvm/mcp-ai-chat-langchain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server