MCP ExplorerExplorer

Mcp And Adk

@DARK-art108on 5 days ago
2Ā MIT
FreeCommunity
AI Systems
A quick demo on using Google ADK and Local MCP Server with Toolset.

Overview

What is Mcp And Adk

MCP-ADK is a Python-based toolkit that enables the development of intelligent agents capable of extracting and processing information from Wikipedia articles using the Message Context Protocol (MCP). It facilitates real-time interactions and rich content extraction, making it suitable for applications that require up-to-date information from Wikipedia.

Use cases

MCP-ADK can be used in various scenarios such as chatbots that provide Wikipedia summaries, educational tools for students to gather information quickly, research assistants that extract relevant articles, and any other applications that benefit from dynamically pulling content from Wikipedia.

How to use

To use MCP-ADK, you first need to clone the repository and set up a virtual environment. After installing the required packages, you can start the server using a command. The API facilitates real-time communication through SSE and provides endpoints to manage messages effectively. Developers can also integrate the agent into their applications by using the provided API interface.

Key features

Key features of MCP-ADK include Wikipedia article extraction and markdown conversion, real-time communication via Server-Sent Events (SSE), robust error handling, a clean API interface, and asynchronous processing capabilities, enabling efficient and effective agent development.

Where to use

MCP-ADK can be deployed in various environments such as web applications, desktop applications, and educational platforms where real-time data extraction and processing of Wikipedia content is beneficial. It is particularly useful in any setting that requires interaction with users and dynamic content delivery.

Content

šŸš€ MCP-ADK (Message Context Protocol - Agent Development Kit)

A Python-based toolkit for building and managing agents with Wikipedia article extraction capabilities.

šŸ“‹ Overview

MCP-ADK is a small demo to showcase the capability of Message Context Protocol (MCP) with an Agent Development Kit (ADK) to create intelligent agents capable of processing and extracting information from Wikipedia articles. The project provides a robust server implementation with real-time communication capabilities using Server-Sent Events (SSE).

✨ Features

  • šŸ“š Wikipedia article extraction and conversion to markdown
  • šŸ”„ Real-time communication using Server-Sent Events (SSE)
  • šŸ›”ļø Robust error handling and validation
  • šŸŽÆ Clean and modern API interface
  • ⚔ Asynchronous processing capabilities

šŸ› ļø Requirements

  • Python >= 3.10
  • Dependencies (automatically installed with the package):
    • beautifulsoup4
    • deprecated
    • google-adk
    • html2text
    • mcp[cli]
    • requests

šŸš€ Installation

  1. Clone the repository:
git clone https://github.com/yourusername/mcp-adk.git
cd mcp-adk
  1. Create and activate a virtual environment:
uv venv
source .venv/bin/activate
uv init
  1. Install the package by adding them in pyproject.toml:
uv add "beautifulsoup4==4.12.3"

šŸ’» Usage

šŸ–„ļø Starting the Server

Run the server using:

uv run server.py

The server will start on localhost:8001.

šŸ” Using MCP Inspector

uv run mcp dev server.py

🌐 Launching ADK Server

After stopping MCP Inspector, launch the ADK server:

uv run adk web

šŸ”Œ API Endpoints

  • /sse - Server-Sent Events endpoint for real-time communication
  • /messages/ - Endpoint for posting messages

šŸ“ Example Usage

from mcp_adk import agent

# Example code for using the agent
# (Add specific examples based on your implementation)

šŸ“ Project Structure

mcp-adk/
ā”œā”€ā”€ adk-agent/          # Agent implementation
ā”œā”€ā”€ server.py           # Main server implementation
ā”œā”€ā”€ main.py            # Entry point
ā”œā”€ā”€ pyproject.toml     # Project configuration
└── README.md          # This file

Tools

No tools

Comments