Role-Specific Context MCP Server
Overview
MCP-Server is a Model Context Protocol (MCP) server designed to manage contextual boundaries based on agent roles within a system, enabling role-based context management for AI agents.
To use MCP-Server, clone the repository, install dependencies, set up your OpenAI API key, and run the server. You can then process queries using specific roles or create custom roles through the provided tools and HTTP API.
- Role management with customizable roles and tone profiles. - Role-specific memory management with retrieval and time-to-live settings. - Integration with MCP resources for role-based interactions.
- Managing different AI agents like Marketing Experts or Technical Writers with tailored instructions.
- Storing and retrieving role-specific memories to enhance interaction relevance.
- Adapting the tone and style of responses based on the agent's role.
Add to your AI client
Use these steps to connect Role-Specific Context MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-chris-june": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-chris-june": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-chris-june": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-chris-june": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-chris-june": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-chris-june": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-chris-june"
]
}
}
}FAQ
Can MCP-Server handle multiple roles simultaneously?
Yes! MCP-Server is designed to manage multiple roles and their specific contexts effectively.
What are the prerequisites for running MCP-Server?
You need Node.js 18+ and an OpenAI API key to run the server.
Is there a limit on the number of roles I can create?
No, you can create as many custom roles as needed, but memory limits per role apply.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3678,"uuid":"acbfc45d-98fd-4245-9688-94744eaa55dc","name":"MCP-Server","title":"Role-Specific Context MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/169491210?v=4","created_at":"2025-03-21T00:38:51.988Z","updated_at":"2025-03-21T00:39:54.987Z","status":"created","author_name":"Chris-June","author_avatar_url":"https://avatars.githubusercontent.com/u/169491210?v=4","tags":"mcp-server,role-management,context-management","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Chris-June/MCP-Server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-20 19:45:34\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]