Build AI App with FULL WEB ACCESS 🌐 (Local + Python GUI + MCP Tutorial)

preview_player
Показать описание
What if your own language model could search the internet and answer real-time questions? 🌐 Just like ChatGPT, but running locally on your system, inside your application, where you have full control!
That’s exactly what we will build today! 🛠️🔥

In this dev-focused step by step walkthrough, we’ll build a local AI app using Python, LangChain, and the Model Context Protocol (MCP) 📜 — a new open protocol that connects LLMs to real-time data from the internet and other external resources (like files, apps, databases and web pages).

🛠️ What You’ll Build:
- A local Python app where an LLM (via Ollama) can browse the live web.
- An async MCP client that can access tools like web_data_reddit_posts, and web_data_linkedin_person_profile.
- A Streamlit GUI with user input, real-time answers, and automatic tool-switching.
- A setup that uses Bright Data MCP to handle CAPTCHAs, JS rendering, proxies & more.

🔍Tech Stack:
- Python 3.12 🐍
- LangChain (with MCP adapters and Ollama LLM) 🔗
- Ollama (running Gemma3 locally) 🧠
- Bright Data MCP (scraping, proxies, browser API for LLMs) 🌐
- Streamlit for a fast GUI 💻

💡 You’ll Learn:
- What MCP is and how it brings real-time data into LLMs without training or fine-tuning.
- How to structure MCP clients in Python with LangChain’s async tooling.
- How to run everything locally: no OpenAI keys, no cloud lock-in, just raw Python + Node.
- How to cache responses, route URLs to tools, and maintain clean prompts.

👨‍💻 Who This Is For:
- Build AI agents and want direct control over context.
- Need LLMs that can reason over live, external data.
- Are done with SaaS restrictions and want local, hackable AI.

⏰ Timestamps:
01:03 - What's MCP?
05:28 - Setup Web Unlocker Zone [Bright Data]
06:21 - Setup API Key [Bright Data]
06:47 - Specify API Key in .bashrc
08:12 - Run MCP Server
09:38 - Error: Duplicate Zone Name
10:20 - MCP Client Setup [Langchain]
16:04 - Asynchronous MCP Requests
18:40 - Handle MCP Tools
22:28 - Ollama CLI Setup to Run AI Models Locally
24:24 - Langchain Ollama
26:18 - Pass MCP Output into LLM Prompt
29:39 - Design GUI [Streamlit]
31:21 - Streamlit Callback
34:38 - Combine Multiple MCP Tools [Reddit & LinkedIn]
36:16 - Further Development Ideas

🚨 IMPORTANT LINKS 🚨
------------------------------------------------------------------------
🎁 Get $10 Free Bright Data Credits:

⭐ Official Bright Data MCP GitHub:

📦 Full Tutorial Code GitHub (Simple MCP App):
------------------------------------------------------------------------

👍 Like if you're into serious AI tooling
🔔 Subscribe for real-world AI engineering tutorials
💬 Comment if you want to see this connected to Discord, GitHub, or terminal agents

#python #pythonprogramming #LLM #LangChain #WebScraping #Ollama #MCP #LocalLLM #Streamlit #AgenticAI #coding #software
Рекомендации по теме
Комментарии
Автор

Yet another awesome project from the Python bombshell of YouTube!

Redneck_Cybertruck
Автор

im still in the intro and ican't help myself but type a comment... im very excited to watch this lol

very happy i found this channel

abdulrahmano
Автор

This is exactly what I need.. It will save me endless hours researching 25 websites at once without having to do it manually!!

I know this can totally do log-in pages or.. Pages that you have to pay to see the data.. This is awesome!!

Very well done video!

lemnick
Автор

Awesome job, Mariya! 👍👍👋🏻👋👋👋 You're a natural.

flyingsalmon
Автор

Good walkthrough! Does it work only with public web pages? What about login protected page?

KoPhyoMM
Автор

Thank You Mariya ❤

So, part2 of the tutorial is comming?

mariterebarranco
Автор

excellent work. please, can you give an outline of dependent injection: purpose, key features, use cases, and benefits

patientson
Автор

Very interesting and informative video! Thank you for your hard work! 🍒🧡

NguyễnTrọngChínhnh-pk
Автор

Hay mariya you r my favorite instructor

Ravi-peoi
Автор

lets gooo HARD WORKING HONEY BEE <3

codingislove
Автор

Should we install some packages or dependencies meanwhile? 😮

fabiancortes
Автор

Are you familiar with rfo-basic for Android OS?

rickeyestes
Автор

what ai models are you using to make this beautiful women ?

kjaergaard
Автор

Maria is this solution better suited to run client or server side?

testmail-lb
join shbcf.ru