Building a Custom MCP Server to Connect Gemini CLI with n8n for Workflow Automation

Introduction In this post, I’ll walk you through my journey of integrating Google’s Gemini CLI (v0.24.0) with my self-hosted n8n instance (v2.2.6) using the Model Context Protocol (MCP). While n8n provides built-in MCP support, it only exposes read-only actions. To unlock full workflow automation—creating, modifying, and deleting workflows via Gemini CLI—I built a custom Python MCP server that leverages n8n’s API. Project Overview Goal: Enable Gemini CLI to create, read, update, and delete n8n workflows programmatically. ...

January 16, 2026 · 6 min · 1109 words · Indunil Sandaruwan Thembuwana

Building a YouTube Transcript Extractor with Python

Have you ever wanted to extract the transcript from a YouTube video for note-taking, analysis, or content creation? In this tutorial, I’ll walk you through building a simple yet powerful Python script that does exactly that. What We’re Building Our script will: Accept any YouTube URL as input Extract the video transcript automatically Display the transcript in the console Optionally save it to a text file Prerequisites Before we start, make sure you have: ...

January 7, 2026 · 6 min · 1169 words · Indunil Sandaruwan Thembuwana

Build a YouTube to MP3 Converter in Python

Introduction Converting YouTube videos to MP3 format is a common need for music enthusiasts, content creators, and learners. In this guide, I’ll walk you through a complete Python solution that handles downloading and converting YouTube videos to MP3 files with automatic dependency checking and robust error handling. This script is perfect for: Downloading music from YouTube Creating offline audio libraries Audio content processing Learning about Python automation Prerequisites Before you start, ensure you have: ...

December 30, 2025 · 8 min · 1594 words · Indunil Thembuwana