Claude Role Library
Supports syncing role definitions from GitHub repositories and performing batch imports of curated AI prompts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude Role Librarysearch for a senior code reviewer persona"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude Role Library
An expert role selector for Claude - seamlessly switch AI personas in Claude Code CLI and Claude Desktop.
Overview
Claude Role Library is an MCP (Model Context Protocol) server that enables users to manage and apply specialized AI roles within the Claude ecosystem. Similar in concept to OpenAI's GPT Store, it provides a local-first approach to organizing and using curated prompts.
Key Features
Cross-platform support - Works with both Claude Code CLI and Claude Desktop via MCP
Local-first architecture - All data stored locally, no cloud dependency
Two-tier favorites - Global and project-level role collections
Source tracking - Track prompt origins with sync capabilities
YAML-based storage - Human-readable, Git-friendly configuration
Related MCP server: jlbloomer-mcp-server
Installation
From npm (Coming Soon)
# Global installation
npm install -g claude-role-library
# Or use directly with npx
npx claude-role-libraryLocal Development
Prerequisites: Bun v1.0 or later
# Clone the repository
git clone https://github.com/user/claude-role-library.git
cd claude-role-library
# Install dependencies
bun install
# Run the server
bun run start
# Run in development mode (with hot reload)
bun run devRunning Tests
# Run all tests
bun test
# Run tests in watch mode
bun test --watch
# Run specific test file
bun test src/schemas/role.test.tsMCP Configuration
After npm install (future):
{
"mcpServers": {
"claude-role-library": {
"command": "npx",
"args": ["claude-role-library"]
}
}
}For local development:
{
"mcpServers": {
"claude-role-library": {
"command": "bun",
"args": ["run", "/path/to/claude-role-library/src/index.ts"]
}
}
}Usage
# List all available roles
/roles list
# Search for specific roles
/roles search "code review"
# Apply a role to the current session
/roles use senior-code-reviewer
# Manage favorites
/favorites list
/favorites add senior-code-reviewerData Structure
~/.config/claude-role-library/
├── config.yaml # Global configuration
├── sources.yaml # External source definitions
├── favorites.yaml # Favorited roles
└── roles/ # Role definitions
└── *.yaml
{project}/.claude-role-library/
└── favorites.yaml # Project-specific favoritesTech Stack
Component | Technology |
Language | TypeScript |
Runtime | Bun |
Protocol | MCP SDK |
Storage | YAML |
Validation | Zod |
Documentation
Architecture - System design and component overview
Schema - Data format specifications
Roadmap - Development progress and planned features
Roadmap
Phase | Status | Features |
Phase 1 | Completed | Core role management, MCP integration |
Phase 2 | Completed | GitHub source sync, batch import |
Phase 3 | In Progress | AI-assisted transformation, multi-source parsers, indexing |
Phase 4 | Planned | Community sharing, usage statistics |
Contributing
Contributions are welcome. Please review the architecture documentation before submitting changes.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceA comprehensive Model Context Protocol server that enables dynamic AI persona management with GitHub-powered marketplace integration, allowing Claude and other compatible AI assistants to activate different behavioral personas with community sharing capabilities.3875740AGPL 3.0
- AlicenseBqualityDmaintenanceA personal MCP server for AI assistant integration that provides custom tools, resources, and prompts for use with Claude Desktop and other MCP-compatible clients.2MIT
- Alicense-qualityDmaintenanceA local-only MCP server that uses SQLite to store, search, and manage a personal library of AI prompts. It enables developers to organize and reuse prompts across multiple AI clients like Claude and Cursor while keeping all data on their local machine.141MIT
- Alicense-qualityDmaintenanceThis MCP server provides access to resources and prompts from GitHub repositories or the local filesystem, enabling teams to share coding standards, documentation, and reusable prompts with AI tools like Claude.2701MIT
Related MCP Connectors
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tony427/claude-role-library'
If you have feedback or need assistance with the MCP directory API, please join our Discord server