Libs MCP Service
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., "@Libs MCP Servicelist departments with search engineering"
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.
Libs MCP Service
A Model Context Protocol (MCP) service for integration with external platforms. This service provides CRUD operations for various entities through a standardized MCP interface using the official MCP SDK.
Quick Setup
Configuration
Add the following to your MCP configuration:
{
"mcpServers": {
"libs-mcp-service": {
"command": "npx",
"args": ["github:AdminRHS/libs-mcp-service"],
"env": {
"API_TOKEN": "your_actual_token_here",
"API_BASE_URL": "https://libs.anyemp.com",
"MODE": "light"
}
}
}
}Important: Replace your_actual_token_here with your real API token from the external platform.
Environment Variables
Variable | Required | Description | Default |
| Yes | Authentication token for the external platform | - |
| Yes | Base URL for the external API | - |
| No | UI mode: |
|
API Environments
Production:
https://libs.anyemp.com- Main microservice for librariesDevelopment:
https://libdev.anyemp.com- Recommended for development and testing
Recommendation: Use the development environment for testing to avoid affecting production data.
Related MCP server: Azure AHDS FHIR MCP Server
β¨ Features
π’ Official MCP SDK: Full MCP compliance using
@modelcontextprotocol/sdkπ§ Universal Tools:
list,get,create,updatefor all 20+ entity typesβ‘ Performance: Response caching with TTL and smart invalidation
π‘οΈ Security: Rate limiting, request size caps, and bearer token authentication
π Smart Updates: Automatic term preservation in update operations
π€ AI Metadata: Comprehensive tracking for AI-generated content
π± Dual Modes: Light mode for minimal UIs, standard mode for full functionality
π Easy Deployment: Executable via npx without local installation
ποΈ Modes
Configure behavior with the MODE environment variable:
Light Mode (MODE=light)
Same tool list: All tools available (no filtering)
Auto-optimization: List operations automatically add
all=trueandisShort=trueparametersReduced responses: Single
getoperations return{ id, name }formatPerfect for: Claude, ChatGPT, and other token-conscious clients
Standard Mode (MODE=standard)
Full tool list: All available tools shown
Complete responses: Full entity payloads in all operations
Manual control: Explicit parameters required for optimization
Perfect for: Development and full-featured applications
π οΈ Available Tools
Universal Tools (All Entities)
listβ List entities with pagination and searchgetβ Fetch single entity by IDcreateβ Create new entity with AI metadata supportupdateβ Update entity with automatic term preservation
Essential Specialized Tools
get_term_typesβ Retrieve available term typesget_prioritiesβ Retrieve all prioritiesfind_existing_responsibility_termsβ Check existing action-object term combinationscreate_termβ Create individual terms with AI metadataupdate_termβ Update individual terms with AI metadata
AI metadata behavior:
Create: include
aiMetadataonly for the term(s) you want marked/recorded as AI-generated; others remain unchanged.Update: include
aiMetadataonly for term(s) you intend to change; omitting it leaves existing AI fields as-is.
Supported Entities (23 Types)
Core: Departments, Professions, Languages, Countries, Cities
Content: Actions, Objects, Responsibilities, Formats
Organization: Industries, Sub-Industries, Tools, Tool Types
System: Statuses, Term Types, Individual Terms
Management: Shifts, Currencies, Rates, Levels, Positions, Skills, Priorities
π Common Usage Patterns
List Entities with Search
// List departments with search
{
"resource": "departments",
"search": "engineering",
"limit": 5
}Create Entity with AI Metadata
// Create department with AI tracking
{
"resource": "departments",
"payload": {
"mainTerm": {
"value": "Data Science",
"language_id": 1,
"term_type_id": 1,
"aiMetadata": {
"ai_generated": true,
"ai_model": "gpt-4o",
"ai_confidence_score": 9.5
}
}
}
}Update with Term Preservation
// Update preserves existing terms automatically
{
"resource": "departments",
"id": "123",
"payload": {
"mainTerm": {
"value": "Updated Name",
"language_id": 1,
"term_type_id": 1
}
// Existing terms automatically preserved
}
}ποΈ Architecture
Core Components
index.js- Main MCP server with official SDK integrationconfig.js- Environment validation and configurationapi.js- HTTP client with caching, timeouts, and error handlingentities.js- CRUD operations for all 23 entity typestools.js- MCP tool definitions with JSON Schema validationhandlers.js- Tool handler mappings and routing
Advanced Features
src/errors.js- Structured error handling with MCP formattingsrc/cache.js- Response caching with TTL and smart invalidationsrc/rateLimit.js- Fixed-window rate limiting per client
Build System
libs-mcp-service.js- Bundled executable (530KB) for npx deployment
π§ͺ Testing Status
β Comprehensive Testing Complete (23/23 Entities)
Entity Category | Entities | Status | Features Tested |
Core | Departments, Professions, Languages | β Complete | CRUD, AI metadata, term preservation |
Geography | Countries, Cities | β Complete | Complex terms, ISO codes, coordinates |
Content | Actions, Objects, Responsibilities | β Complete | Term relationships, format linking |
Organization | Industries, Sub-Industries | β Complete | Parent-child relationships |
System | Tools, Tool Types, Formats | β Complete | Many-to-many relationships |
Meta | Statuses, Term Types, Terms | β Complete | Individual term management |
Management | Shifts, Currencies, Rates, Levels, Positions, Skills, Priorities | β Complete | Time, financial, position, role, skill, and priority management |
Key Testing Results
β Schema Validation: All entity schemas validated against actual API
β Permission Testing: Proper 403 handling for restricted operations
β AI Metadata: Comprehensive testing of AI tracking fields
β Term Preservation: Smart update logic maintains existing terms
β Relationship Handling: Complex entity relationships working correctly
β Error Handling: Structured errors with proper MCP formatting
π Security Features
π‘οΈ Bearer Authentication: Secure API token handling
β±οΈ Rate Limiting: 60 requests/minute per client (configurable)
π Request Size Limits: 100KB body size cap
π Secret Masking: Authorization headers masked in cache keys
β° Timeout Protection: 30-second request timeouts with AbortController
π Performance Optimizations
πΎ Response Caching: 5-minute TTL with smart invalidation
ποΈ Cache Management: Automatic prefix-based invalidation on writes
π¦ Bundle Optimization: Minified 530KB bundle with tree-shaking
β‘ Efficient Updates: Term preservation reduces API calls
π Installation & Deployment
Option 1: Direct Execution (Recommended)
npx github:AdminRHS/libs-mcp-serviceOption 2: Global Installation
npm install -g github:AdminRHS/libs-mcp-service
libs-mcp-serviceOption 3: Development Mode
git clone https://github.com/AdminRHS/libs-mcp-service.git
cd libs-mcp-service
npm install
npm run devπ§ API Integration
The service expects RESTful endpoints following this pattern:
GET /api/token/{entity} # List with pagination
GET /api/token/{entity}/:id # Get by ID
POST /api/token/{entity} # Create new
PUT /api/token/{entity}/:id # Update existing
DELETE /api/token/{entity}/:id # Delete (where permitted)All requests include Authorization: Bearer <API_TOKEN> header.
Supported Endpoints
/api/token/departments- Department management/api/token/professions- Profession management/api/token/languages- Language and term management/api/token/countries- Country data with ISO codes/api/token/cities- City data with coordinates/api/token/actions- Action definitions with terms/api/token/objects- Object definitions with formats/api/token/responsibilities- Responsibility linking/api/token/industries- Industry classifications/api/token/sub-industries- Sub-industry definitions/api/token/tools- Tool management with types/api/token/tool-types- Tool type definitions/api/token/formats- Format specifications/api/token/statuses- Status management/api/token/priorities- Priority management/api/token/term-types- Term type definitions/api/token/terms- Individual term management/api/token/shifts- Working time management/api/token/currencies- Currency management/api/token/rates- Rate management/api/token/levels- Position level management/api/token/positions- Position and role management/api/token/skills- Skill management (responsibility-tool relationships)
π Troubleshooting
Common Issues
β "API_TOKEN environment variable is required"
Verify API_TOKEN is set in your MCP client configuration
Check for typos in environment variable names
β "HTTP error! status: 401"
Verify your API token is valid and not expired
Ensure proper Bearer token format
β "HTTP error! status: 403"
Normal behavior for write operations on most entities
Only certain entities allow POST/PUT operations
β "Rate limit exceeded"
Check if multiple clients are using same configuration
β Service not starting
Ensure Node.js 18+ is installed
Check network connectivity to API_BASE_URL
Debug Mode
Enable detailed logging:
DEBUG=* npx github:AdminRHS/libs-mcp-serviceHealth Check
Test connectivity:
// Use 'list' tool with minimal parameters
{
"resource": "term_types",
"limit": 1
}π Metrics & Monitoring
The service includes built-in metrics tracking:
Request counts by tool and entity type
Error rates with status code breakdown
Cache hit/miss ratios for performance monitoring
Rate limit statistics per client
Response times for performance analysis
π€ AI Metadata Support
Comprehensive AI tracking for all terms and entities:
Supported Fields
ai_generated- Whether content was AI-generatedai_model- AI model used (e.g., "gpt-4o", "claude-3.5")ai_confidence_score- Confidence rating (0.00-9.99)ai_quality_score- Quality assessment (0.00-9.99)ai_validation_status- Review status ("pending", "approved", "rejected")ai_human_reviewed- Human review flagai_source_data- Original source informationai_metadata- Additional AI-specific data
Usage Examples
See docs-models/AI_METADATA_GUIDE.md for comprehensive examples and best practices.
π License
MIT License - see LICENSE file for details.
π€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes
Run
npm run buildto update the bundled fileCommit both source and bundled files
Submit a pull request
π Support
Issues: Create an issue on GitHub
Documentation: Check the
docs-models/directoryAPI Questions: Verify API_BASE_URL and token configuration
Performance: Monitor cache hit rates and adjust TTL settings
Status: β Production Ready - All 23 entities tested and validated
Built with β€οΈ using the official Model Context Protocol SDK
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
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables interaction with Microsoft Dynamics 365 CRM from Claude Desktop, allowing users to retrieve, create, and update CRM data through natural language.Last updated521MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables standardized interaction with Azure Health Data Services FHIR servers, allowing healthcare data operations through MCP tools.Last updated118MIT
- -license-quality-maintenanceA Model Context Protocol service registry and connector framework that enables seamless integration with multiple services and models through a standardized API interface. Provides an extensible architecture for custom service adapters, API integrations, and model registries.Last updated
Related MCP Connectors
Provide seamless access to Appfolio Property Manager Reporting API through a standardized MCP servβ¦
A paid remote MCP for AI SDK MCP gateway registry, built to return verdicts, receipts, usage logs, a
A paid remote MCP for Context7 MCP docs, built to return verdicts, receipts, usage logs, and audit-r
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/AdminRHS/libs-mcp-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server