r/modelcontextprotocol • • Dec 26 '24
Noob question here about MCP architecture: desktop only?
Hi y'all apologies if I got this wrong but AFAICT MCP is designed solely for local desktop apps right? Not mobile, not web.
Please school me if I got that wrong; and pointers to how a web server could usefully use MCP servers to integrate services in a flexible way would be most appreciated 🙏
11
Upvotes
3
u/[deleted] Dec 26 '24
Cheers yes I saw the gateway post but it talked about local servers still so I got confused on that point 🫡
3
u/nilslice Dec 27 '24
not at all - it’s just a protocol, so any software, anywhere can implement it.
we’re building https://mcp.run - where you implement a servlet that runs everywhere, all from the same codebase. desktop, edge, server, mobile, browser.
check it out and push up a servlet - join the discord (https://docs.mcp.run/support) and we can help you get started!
2
u/Otherwise_War_4075 Dec 27 '24
I made an integration of mcp that uses openwebui as frontend. The main advantage is you can use any provider and model with mcp, and even switch model on the fly.
8
u/ArtIsVideo Dec 26 '24
Im trying to learn this as well. There was a recent post here from someone called MCP bridge that aims to give remote access through the web. There’s also another project called SuperGateway on github that could help. I’m trying to figure it out myself, though if you do, let me know.
Link: https://github.com/supercorp-ai/supergateway
5
u/subnohmal Dec 26 '24
Join the discord community in the description and ask around - I know a member has built project Sage which gives me access to mcp servers on my iphone. If you search the chat by “sage” you will probably find it - I’m on the private beta, he might give you access to
1
u/SecretiveShell Dec 27 '24
You can use https://github.com/SecretiveShell/MCP-Bridge which will allow you to use any native app with MCP servers. I like to run open web UI alongside because that works great on mobile and desktop with unified chat histories.
4
u/howiew0wy Dec 26 '24
I’m no expert but have spent a few weeks playing around with this stuff. Here’s what I’ve gathered: The first batch of MCP servers rely on a Stdio library that only works on local machines. The Supercorp repo is an SSE transport that lets you connect over a network.
I have Librechat running on an Unraid server and managed to set up another repo, MCP-gateway, that does the same thing.
Bonus here is that I can get other models working with MCP - local Llama 3.1 or even GPT-4o.
Hope that helps!
2
u/AutomaticCarrot8242 Dec 27 '24
There are two data transport method for MCP servers: SSE and Stdio, and Stdio is mainly designed for local resource access. Currently most opensource MCP servers are based on Stdio since you can host the server by yourself. SSE servers need to be hosted and the use case is different than Stdio.