mcp-demo
This repository demonstrates the minimal example of MCP client and remote server implementations without relying on official or 3rd party MCP SDKs.
The Remote Model Context Protocol (MCP) Server is a demonstration of implementing MCP client and server without using official or third-party SDKs. It adheres to the Model Context Protocol specification, focusing on the low-level details of MCP flow, including authentication and authorization via OAuth2.1. This setup is particularly useful for enterprise software that cannot use MCP SDKs due to existing server stacks and business logic. The demo uses Streamable HTTP for remote MCP Server implementation, allowing the unification of data and MCP servers. The backend is written in Python, and the frontend in Vue.js, but the logic can be adapted to other languages. The demo supports OAuth2.1 flow with PKCE, and the frontend acts as both MCP Host and Client, while the backend serves as MCP Server and Local Data Source. The remote MCP server is preferred over a local one for reasons such as backward compatibility, extensibility, maintainability, classification, and telemetry.
Features
- OAuth2.1 flow with PKCE support
- Streamable HTTP for remote MCP Server
- Separation of local and remote context handling
- Unification of data server and MCP server
- Adaptable to various programming languages
Usage with Different Platforms
python_backend
python
# Example script to run the backend server
from backend import app
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
vue_frontend
javascript
// Example script to run the frontend server
import { createApp } from 'vue';
import App from './App.vue';
createApp(App).mount('#app');
Related MCP Servers
View all communication servers →Time
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
mcp-twikit
by adhikasp
MCP-Twikit is a Model Context Protocol server designed for interacting with Twitter, enabling users to perform various Twitter-related tasks such as sentiment analysis and timeline retrieval.
osp_marketing_tools
by open-strategy-partners
A comprehensive suite of tools for technical marketing content creation, optimization, and product positioning based on Open Strategy Partners' proven methodologies.
whatsapp-mcp
by lharries
This is a Model Context Protocol (MCP) server for WhatsApp, allowing users to interact with their WhatsApp messages and contacts through an LLM like Claude.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
mcp-compass
by liuyoshio
MCP Compass is a discovery and recommendation service for exploring Model Context Protocol servers using natural language queries.
mcp-server-chatsum
by chatmcp
This MCP Server is used to summarize your chat messages.