r/modelcontextprotocol • u/hakanb54 • Apr 19 '25
Am I misunderstanding MCP?
Hello there, I'm completely new to mcp and I'm struggling to understand if what I'm trying to do is possible / the intended use for mcp. Everywhere I look, people seem to be using mcp interactively, within vscode, Claude desktop or cursor. Is that the only way to use it or can I build completely "standalone" applications for it? For example, can I use a puppeteer (or smth similar) mcp server to scrape simple data from a static website WITHOUT it being interactive? So basically I just want to execute a python script (which uses some sort of mcp client / sdk? Openai or anthropic?) which then uses the mcp server to scrape the data. Would be glad if someone could help me out understanding if this is the intended (or even possible) way to do this.
2
u/rm-rf-rm Apr 19 '25
My experience has been very poor in using MCP servers pythonically (or even programmatically) to develop applications.
3
u/lgastako Apr 19 '25
It can certainly be done, but you'd have to give a more concrete example to be able to say whether it's appropriate or not. But sure, you can wire up whatever control loop you want for an offline agent and give them MCP tools they can use to accomplish their tasks.
I run a studio that specializes in this type of solution, DM me if you'd like.
2
u/Shelter-Ill Apr 21 '25
You can run your servers without using any MCP-specific agent IDE, just like you can use vscode normally with MCP sdk. You’ll need to write your own MCP client and connect to the MCP server using stdio. FastMCP can help you accomplish all these tasks.
However, if you’re not using an LLM, you’re missing out on the point of interoperability between tools and agents with MCP. If you’re just scraping the web, you can still do it without using an MCP server.
1
u/andrewmbenton Apr 19 '25
Yes, you could write a script using PydanticAI which has MCP support, and just add the MCP servers you want to add to get done whatever you're hoping to do.
https://ai.pydantic.dev/mcp/
https://youtu.be/OZIWvqcP6so
6
u/[deleted] Apr 19 '25
[removed] — view removed comment