Get AI-Ready with Kyle's 5-Day Challenge: https://aiwithkyle.com/join Subscribe and turn on notifications: https://www.youtube.com/channel/UChlLglbHDASnoGkbjDeHnQg API, MCP, CLI and computer use are four ways AI systems can connect to software. This video explains what each one is, how they differ, when each route makes sense, and how tools such as Codex and Claude Code can set up those connections for you. ----- Time Stamps ----- 0:00 MCP, API, CLI and Computer Use 1:49 Four Ways AI Connects to Software 2:42 What Is an API? 4:52 What Is MCP? 7:45 What Is a CLI? 8:36 What Is Computer Use? 9:50 API vs MCP vs CLI vs Computer Use 10:33 Let AI Set Up the Connection 12:52 Security and Permissions 13:25 Which One Should You Use? ----- Useful Resources ----- AWS - What is an API? https://aws.amazon.com/what-is/api/ MCP is just a fancy API https://read.theaimerge.com/p/mcp-is-just-a-fancy-api CLI vs. MCP vs. API for Agents https://www.mindstudio.ai/blog/cli-vs-mcp-vs-api-ai-agents
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
So, let's jump in. MCP101. This is a frequently asked for topic, so we're going to finally cover it. What has happened in the last 6 months or so is all of the models are pretty good. Whether you're using Opus, whether you're using ChachiBT Soul, whether you're using Fable, which is very good, whether you're using Kimmy, one of the Chinese models, the actual LLM, the brain at the center of these tools, is very good. Extremely good. And we're starting to see they're all kind of I
won't say plateauing cuz that's a very loaded term but they're all kind of clumping at this similar level of intelligence and this level of intelligence is going up every few months but there's a muchness in terms of the raw intelligence of these models. Obviously we can contest this but what I want to talk about is the fact that increasingly it's not the model not the brain in the middle that matters that much. It is what you do with it. I can definitely make it easy. It's not the size that matters, it's what you do with it. That uh well, I just did joke, but I'm not going to do that. And I have um
what we wrap around our model, the harness, is what increasingly is what is important, not the brain itself. So the harness is a collection of tools, memory, permissions that you provide, and actions that the AI can do for you. And we are moving from a world where we chat with artificial intelligence. that's clawed basic and chatgbt chat into a world where AIs can do things for us. So that has traditionally been cla
but is now increasingly inside a chat GPT work and clawed co-work as well. So that is becoming more and more widespread. More and more people have access to these tools which is really really cool. So there's four main ways we can give hands we can allow our LLM to manipulate the world around it. This is where we get into all the acronyms. We have API, we have MCP, we have CLI, and then we have computer use. It doesn't have an acronym, which is unusual. I'm going to quickly cover what all of these are. Um, I'm not going to
go technical on it. I'm going to talk about what's good about each one, where you'd use them in particular situations, and then show you how to actually today, um, at the end of this session go and load up Codeex, go and load up Claw Code and actually implement one of these. You do not need to write code anymore. You used to have to be able to, especially with the API and the uh CLI. You do not need to anymore. Um, spoiler alert, you basically say to Codeex, hey, can you connect to this MCP? And it will do that for you, which we love. So, these are the four main ways we can give hands to
our AI models. First up, API. Um, you've probably heard of this one, especially if you have connected to the chat GPT API, if you've built any of your own software. API is basically a way um for computers to talk to computers. And let me pull up an example. This is what it looks like. This is JSON, which is a particular format. And you can see it is a list of instructions. Um if you are a human reading this, it's not particularly easy to read. Obviously, if you know JSON, you can look at this and be like, "Yeah, yeah, I get it." But you see all of these kind of curly brackets and stuff. That's to show what kind of
level um we're on. It's it's not particularly easy to read as a human. This is for computers to talk to computers. And this is how we connect software to each other. So they can send instructions back and forth. We've been using API for decades. It's a core technology of the internet. The thing with the APIs though is if you look at this kind of stuff, it is very precise. You need to put the right information into your API requests when you're sending it to another piece of software in order for it to work. Otherwise, you're going to get an error message
sent back. So you'd often spend a lot of time kind of tweaking um your API connections to make sure that the right messages have been sent back and forward. Um that thankfully is something we need to do less and less with artificial intelligence. We can either ask the AI to set up an API connection for us or I'm going to show you in a moment. We can use something called MCP. So the good thing about APIs and why we still use them is they're very predictable because they have a very set um range of instructions that are sent back and forward. There's very little room
for error, very little room for things to go wrong. Um it's more deterministic than we are using artificial intelligence. So this is not AI focused, but we can connect AP AP APIs to our AIS. Um, so they tend to be really good for automation when you know the same task is going to happen again and again and again and you know it's going to have the same inputs and the same outputs. Generally you don't want to use AI that much in that task because it adds randomness. It adds a stochcastic element a more random element than you
might want especially if you're moving numbers back and forth for example in a piece of accounting software. So API is still very very useful. However, there is a new kid on the block, something called MCP, model context protocol. This is a standard that was created by or yeah, created by anthropic in 2020. I'm going to show you a practical example because this is all a bit abstract. Let's say um this is what I do every day. I have I use something called the Beehive MCP. So, I will work in codeex
um I will provide it with my transcript for my lives, my live streams. I will ask it to prepare a draft of my newsletter using that transcript. So following the argument, pulling um slides out of uh my live stream, bringing everything together and drafting that first draft. And then it uses the MCP to basically log into Beehive, which is my newsletter software and to navigate its way around in order to create um the newsletter draft for me. I will then go on and uh actually
edit that draft myself. I don't actually need to. The MCP is getting very good. The AIS are getting very good. I do personally. The Beehive MCP allows an AI agent like Codeex, like claw code to get into a piece of software to do the actual work for it in a way that is a lot more flexible than when we use API. We could do it with the API, but we would have to decide all of the different payloads, all of the different things that we wanted to send to Beehive or to any other piece of software um up front and then we would have to follow that structure every single time.
Whereas an MCP puts AI in the middle of that process and allows an agent to use a piece of software. Really exciting because that allows us to connect to things like Slack. So Slack has an MCP. You can put codeex or clawed code chacht into a piece of software like Slack and it can read messages. Um let me see what you can do. Uh it can search, it can retrieve and send messages. It can manage canvases, manage users. it can um do a whole bunch of things inside of Slack for you in a much more intelligent
way and a much more flexible way than if you were using the API. That is why MCPs are very exciting and people have been going mad over them for the last couple of years. You've probably seen the term uh floating around. And a really useful thing to do is for any SAS or any piece of software that you use, go and see whether you can connect it via MCP. So for example, notion I use notion every day. Um, I just did some research on um, basically finding some leads and I had a a scraper set up to codeex went and
found all that information but then I wanted to get that into notion so that I could send it to Harinder and it doesn't look like you know just a a mess of CSV files and so for that I used the notion MCP. My codecs can connect directly into notion or any piece of software that has an MCP and do work within that software. very very very powerful and that's why people have got so excited about MCPS in particular. Now this is the one you may not have heard of cuz it's a bit more technical. Funny enough, it's actually the oldest. This has been around since
before um before APIs definitely before MCPS. This is CLI command line interface. This is literally typing commands like this versel Versell deploy-bro Versel dev- 3000 into a terminal. Um, so if you've never used the terminal, it's a bit like DOSs if you're a little bit older. Um, or it looks like every single TV show when people are hacking in, that's the terminal. That's what it looks like. Like think about the Matrix and you know what we're talking about here. So the command line interface is
another way that you can connect AI agents to pieces of software. The great thing about command line interface is it's incredibly um lightweight whereas MCP is not. Then finally something that's really interesting but I'd say relatively immature is computer use. The ability for codeex or claude code or claude code work to either take over your Chrome browser to take over a browser that they are connected to natively to take over your computer and
literally move around your mouse. I before I do this live, before I do any live, I need to turn off codeex because I have a few automations, a few scheduled tasks that require it to use computer control. And I know if I don't have codeex paused, if I don't have it turned off, it's going to start navigating around this Chrome browser and it's going to start pulling up analytics and collecting information from elsewhere, which is an absolute nightmare. But very, very cool. If you want to give an AI access to a computer to allow it to log into these pages up here. So I could send it over to behive.
I could send it to my YouTube analytics. I could send it to advertising sites etc. And it can literally click around and navigate as if it was a person. Compute use is amazing. It is also very slow and very inefficient. Um it's probably the kind of the most impressive of these because you can actually see it doing stuff which is very cool. Um but it isn't very practical. Not yet. But these these tools are getting much much much faster. So these are four different tools that basically do the same job. They allow you to connect to other
pieces of software and specifically to connect your AI agents to other pieces of software. So it means if you are running codecs, if you're running claude code, you can use these various connectors to connect up to other tools and to give your AI access to those tools so that it can do more work for you. Um so this is basically what they would look like. This is an API request. An MCP request would t tends to be more like a prompt. It's more in natural language. Uh a command line interface looks like this. And computer use will literally be moving your cursor around
the screen, clicking on things um as if it was a human being. All different ways of getting similar tasks done, but with their own advantages and disadvantages. Now, previously, if you wanted to learn how to use something like an API, let me put up this site. This is the open eye init open API initiative. Um this goes through how the specification and the structure of an uh request the API endpoints HTTP method what you need to put in the content bodies. Look at this. Look at this nonsense. For some of you
you'll be looking at this like yeah that's easy no problem. Uh but I know for a lot of you be like oh my god I don't want to I don't want to deal with that. Thankfully you do not need to. All of these can now be um done by an artificial intelligence. So you're you can do it in codeex, you can do it in uh claude code and it means when you want to connect something let's say uh you want to connect to this slack mcp server or maybe you want to connect to the slack API which also exists you're going to go into codeex or claude code and say hey um I run my business through slack I
want you to connect up to slack using a method that makes sense to you probably going to be the MCP um and every day go through our Slack channels and make a summary and delivering it to my email or my WhatsApp. So, you were just going to give that command to your AI agent. It will then work out how to connect. So, it's going to work out, okay, we need an API, therefore you need to authorize this. You need to give me an API key. And it will walk you through how to do that. Or it will say, oh, there's an MCP. Look, Beehive has a new MCP. This is literally from March or this is the
ver first version. Second version came out in June, I think. So, very, very new. If the AI knows about it or you provide the documentation saying hey uh we can connect this it will work out how to do that and it will tell you all the steps required to make that linkage. So thankfully while all of these have scary sounding acronyms while all of these um can be complicated like this messing around with schema increasingly we just tell the AI to connect up to our tools so that it can do the work and it will be able to do that for us. That is the
godsend thankfully. So I highly recommend doing that after this session, hopping into codeex, hopping into claude code, um hopping into co-work and saying hey I want you to connect up to such and such a piece of software so that I can work here in codeex but you're able to send instructions and retrieve information from that tool. Now with all of these there are security um elements. So if you connect up to the Google Workspace command line interface and you allow your codeex tool to access and you
allow cla code into your emails into your Google Workspace, into your calendar, etc. There are going to be security um issues you need to think about. There's going to be data privacy as well. That is going to be the same for all four of these. Do be aware that that is an issue. As soon as you give an AI access to these tools, it has access to these tools and that is something you need to think about. So hopefully this has been useful just to give you a broad lay of the land without getting too technical about the difference between the different ways to connect an artificial intelligence to tools so that
it can do work for you. That's what's critically important that these tools can do the work for you rather than just us chatting back and forth. So we can use the API, the MCP, the CLI or computer use to get work done for us. Awesome. Thank you guys. Let me stop that.
ChatGPT now has business listings, like a Google Business Profile but inside ChatGPT. Here's how to claim yours before someone else does. Free live webinar every Wednesday, how I charge $2,000-$4,000 an hour teaching...
ChatGPT still gives wrong answers and makes things up. But AI agents now beat PhD experts at fact-checking research claims. So what gives? Is AI better or worse than humans at fact checking and knowledge work?? Here's...
Free IPO briefing, slides and research prompts: https://aiwithkyle.com/mini/anthropic-ipo?utm_source=youtube&utm_medium=description&utm_campaign=mini_anthropic_ipo How I would learn AI if I started again in 2026:...
Join our private WhatsApp group: https://aiwithkyle.com/ai-with-kyle-group-chat Join Freedom OS: https://aiwithkyle.com/join-freedom-os Work with AI with Kyle: https://aiwithkyle.com/media-kit Get the free newsletter:...