An open API service indexing awesome lists of open source software.

https://github.com/nervo84/mcp-agent

Implementation of an MCP (Model Context Protocol) architecture featuring an MCP client and an MCP server. The project enables structured communication between distributed systems, supporting asynchronous interactions and efficient message handling
https://github.com/nervo84/mcp-agent

Last synced: 2 months ago
JSON representation

Implementation of an MCP (Model Context Protocol) architecture featuring an MCP client and an MCP server. The project enables structured communication between distributed systems, supporting asynchronous interactions and efficient message handling

Awesome Lists containing this project

README

          

# MCP Agent
An MCP (Model Context Protocol) server and client using FastMCP and LangChain.

You can watch the video on how it was built on my [YouTube](https://youtu.be/3K39NJbp2IA).

Follow me for updates and future projects:
👉 [LinkedIn](https://www.linkedin.com/in/salvatore-postiglione-927179aa/)
👉 [X (Twitter)](https://x.com/postiglionesax)

# Pre-requisites

Install the dependencies with poetry:

```bash
poetry install
```

Generate an OpenAI API key and set the OPENAI_API_KEY environment variable:

```bash
export OPENAI_API_KEY=...
```
(On Windows, use set instead of export)

# Run
Run the application:

```bash
poetry run mcp_client.py
```