Sayandip05/MCP-Context-Sharing-System
If you are the rightful owner of MCP-Context-Sharing-System and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Context Sharing Server is designed to facilitate the sharing and retrieval of context between multiple agents using the Model Context Protocol.
MCP Context Sharing Server
A Model Context Protocol (MCP) server for sharing context between multiple agents.
Features
- Share Context: Store context from any agent
- Retrieve Context: Search and retrieve stored contexts
- List All Context: View all stored contexts from all agents
Installation
pip install fastmcp
Running the Server
python src\server\main.py
The server will start with SSE transport at: http://localhost:3000/sse
Using MCP Inspector
To test and interact with your server using the MCP Inspector:
- Make sure your server is running
- Open a new terminal and run:
npx @modelcontextprotocol/inspector - The Inspector will open at
http://localhost:6274 - Connect to your server using SSE transport with URL:
http://localhost:3000/sse
Available Tools
share_context
Store context from a specified agent.
Parameters:
agent(string): Name of the agent storing contextcontent(string): Context content to store
retrieve_context
Retrieve all stored context entries matching a query.
Parameters:
query(string): Search query to find matching contexts
list_all_context
Return the full context store with contexts from all agents.
Parameters: None
Example Usage
Once connected via MCP Inspector:
- Share Context: Use
share_contexttool with agent="Agent1", content="This is some context" - Retrieve Context: Use
retrieve_contexttool with query="some" - List All: Use
list_all_contextto see all stored contexts
"# MCP-Context-Sharing-System"