Sponsored by Deepsite.site

Pokémon AI Demo

Created By
GomesAdhikari7 months ago
MCP server for agentic AI to withdraw information
Content

Pokémon AI Demo

A full-stack application for exploring Pokémon data, comparing Pokémon, suggesting counters, and generating teams using AI. The system features a Django REST API backend and a React/MUI frontend.


Table of Contents


System Setup and Deployment

Prerequisites

  • Python 3.8+ (for backend)
  • Node.js 16+ & npm (for frontend)
  • pip (Python package manager)

Backend Setup (Django/DRF)

  1. Navigate to the backend directory:
    cd mcp_server
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run migrations:
    python manage.py migrate
    
  4. Start the backend server:
    python manage.py runserver
    
    The API will be available at http://127.0.0.1:8000/api/.

Frontend Setup (React/MUI)

  1. Navigate to the frontend directory:

    cd mcp_frontend
    
  2. Install dependencies:

    npm install
    npm install @mui/material @emotion/react @emotion/styled
    npm install @mui/icons-material
    
    
    
  3. Start the frontend server:

    npm start
    

    The app will be available at http://localhost:5173/.

  4. Start the app automatically -

In terminal run command start.bat (for windows)

start.sh for (linux distro)

Environment Variables

  • By default, the frontend expects the backend at http://127.0.0.1:8000/api/agent/. Adjust API_BASE in mcp_frontend/src/App.jsx if needed.

dotenv structure (.env)

  • make a .env file inside mcpserver folder
  • contents - " POKE_API_URL = "https://pokeapi.co/api/v2/" GOOGLE_API_KEY = "your api key" "

Available Modules and Their Use

The backend exposes four main endpoints:

  1. Pokémon Info (POST /api/agent/pokemon-info/)

    • Input: { "name": "pikachu" }
    • Output: Basic info, stats, abilities, moves, evolution, and flavor text.
  2. Compare Pokémon (POST /api/agent/compare/)

    • Input: { "pokemon1": "pikachu", "pokemon2": "bulbasaur" }
    • Output: Stat-by-stat comparison, type advantage, shared/unique abilities.
  3. Suggest Counters (POST /api/agent/strategy/)

    • Input: { "name": "charizard" }
    • Output: Weaknesses and recommended counter Pokémon.
  4. Team Builder (POST /api/agent/team/)

    • Input: { "description": "balanced team with fire and water types" }
    • Output: AI-generated team with roles and images.

How to Use the Team Builder

  • Purpose: Generate a Pokémon team based on a natural language description (e.g., "offensive team with good type coverage").
  • How to Use:
    1. Go to the "Generate Team" section in the web UI.
    2. Enter your team description in the input field.
    3. Click "Generate".
    4. The AI will return a team of Pokémon, each with a name, role, and image.
  • API Usage:
    • Send a POST request to /api/agent/team/ with { "description": "your team idea" }.
    • Receive a structured team suggestion in the response.

Web Interface Walkthrough

The web app is organized into four main cards:

  1. Search for Pokémon
    • Enter a Pokémon name to view its stats, types, abilities, moves, evolution chain, and flavor text.
  2. Compare Two Pokémon
    • Enter two Pokémon names to compare their stats, type advantages, and abilities side-by-side.
  3. Suggest Counters
    • Enter a Pokémon name to see its weaknesses and recommended counters.
  4. Generate Team
    • Describe your desired team and get an AI-generated team with roles and images.

Each section provides instant feedback, loading indicators, and error messages for a smooth user experience.


Instructions for Agent Integration

You can integrate external agents or scripts with the backend API. Example usage:

  • Python Example:
    import requests
    response = requests.post('http://127.0.0.1:8000/api/agent/pokemon-info/', json={"name": "pikachu"})
    print(response.json())
    
  • Endpoints:
    • /api/agent/pokemon-info/ (POST)
    • /api/agent/compare/ (POST)
    • /api/agent/strategy/ (POST)
    • /api/agent/team/ (POST)
  • Request/Response Format: All endpoints accept and return JSON.

License

This project is for educational/demo purposes and is not affiliated with Nintendo, Game Freak, or The Pokémon Company.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
ChatWiseThe second fastest AI chatbot™