MCP Best Practices Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Best Practices Server
An MCP (Model Context Protocol) server that provides coding best practices, guidelines, and code review capabilities for multiple programming languages and frameworks. Compatible with VS Code, GitHub Copilot, and other MCP clients.
๐ Quick Start
One-Click Installation for VS Code
Click this link to automatically install and configure the server in VS Code:
Manual Installation
Option 1: Global Installation
npm install -g mcp-best-practices-serverThen add to your .vscode/mcp.json:
{
"mcpServers": {
"best-practices": {
"command": "mcp-best-practices-server",
"args": []
}
}
}Option 2: Using npx (Recommended)
Add to your .vscode/mcp.json:
{
"mcpServers": {
"best-practices": {
"command": "npx",
"args": ["mcp-best-practices-server"]
}
}
}Related MCP server: TBC Guidelines Automation System
โจ Features
๐ง Tools
Tool | Description | Parameters |
get_best_practices | Retrieve best practices for specific languages/frameworks |
|
search_best_practices | Search through all available guidelines |
|
validate_code_pattern | Analyze code snippets for best practice compliance |
|
๐ Resources
Browse and access best practice documents directly:
TypeScript - Type safety, modern syntax, performance guidelines
JavaScript - ES6+, async/await, error handling, security
React - Component design, hooks, performance optimization
General Programming - SOLID principles, testing, documentation
๐ฌ Prompts
Prompt | Description | Parameters |
code_review | Comprehensive code review based on best practices |
|
architecture_guidance | Architectural recommendations for projects |
|
๐ฏ Usage Examples
In VS Code with GitHub Copilot
Get Language-Specific Best Practices
User: "Show me TypeScript best practices for error handling"
AI: *calls get_best_practices tool with language="typescript", category="error-handling"*Search for Specific Guidelines
User: "How should I structure React components?"
AI: *calls search_best_practices tool with query="React component structure"*Code Review and Validation
User: "Review this function for best practices"
function getUserData(id) {
const data = fetch('/api/users/' + id).then(r => r.json());
return data;
}
AI: *calls validate_code_pattern tool to analyze the code*Use Built-in Prompts
User: "/mcp.best-practices.code_review"
AI: *Prompts for code, language, and focus areas, then provides comprehensive review*Available Best Practice Categories
Performance - Optimization techniques, caching strategies, lazy loading
Security - Input validation, authentication, authorization, XSS prevention
Testing - Unit testing, integration testing, TDD, mocking
Architecture - Design patterns, SOLID principles, code organization
Maintainability - Code readability, documentation, refactoring
๐ Supported Languages and Frameworks
Programming Languages
TypeScript - Complete guidelines for modern TypeScript development
JavaScript - ES6+ best practices, async patterns, performance
Python - PEP 8, testing, packaging (coming soon)
Java - Spring Boot, testing, performance (coming soon)
Frameworks and Libraries
React - Hooks, component patterns, performance optimization
Vue.js - Composition API, reactive patterns (coming soon)
Express.js - API design, middleware, security (coming soon)
Next.js - SSR/SSG patterns, performance (coming soon)
๐ ๏ธ Development
Local Development
Clone the repository
git clone https://github.com/yourusername/mcp-best-practices-server.git cd mcp-best-practices-serverInstall dependencies
npm installBuild the project
npm run buildTest locally
npm start
Development Mode
For development with automatic restart:
{
"mcpServers": {
"best-practices-dev": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"NODE_ENV": "development"
},
"dev": {
"watch": ["src/**/*.ts", "best-practices/**/*.md"],
"debug": {
"type": "node",
"request": "launch",
"program": "./dist/index.js"
}
}
}
}
}Adding New Best Practices
Create markdown files in the
best-practices/directoryFollow the naming convention:
{language}/{framework}/{category}.mdUse clear headings and code examples
Include both good and bad examples with โ /โ indicators
Example structure:
best-practices/
โโโ typescript/
โ โโโ general.md
โ โโโ react/
โ โ โโโ hooks.md
โ โ โโโ performance.md
โ โโโ testing.md
โโโ javascript/
โ โโโ general.md
โ โโโ async.md
โ โโโ security.md
โโโ general/
โโโ programming.md
โโโ testing.md
โโโ architecture.md๐งช Testing
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run linting
npm run lint
# Fix linting issues
npm run lint:fix๐ API Reference
Tool Schemas
get_best_practices
interface GetBestPracticesArgs {
language: string; // Required: programming language
framework?: string; // Optional: specific framework
category?: string; // Optional: category like 'performance', 'security'
}search_best_practices
interface SearchBestPracticesArgs {
query: string; // Required: search query
limit?: number; // Optional: max results (default: 10)
}validate_code_pattern
interface ValidateCodePatternArgs {
code: string; // Required: code to analyze
language: string; // Required: programming language
context?: string; // Optional: additional context
}๐ค Contributing
We welcome contributions! Here's how you can help:
Add new best practices - Submit markdown files for new languages/frameworks
Improve existing content - Enhance current best practice documents
Fix bugs - Report and fix issues in the server code
Add features - Implement new tools or capabilities
Contribution Guidelines
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Write tests for new functionality
Ensure all tests pass (
npm test)Update documentation as needed
Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Related Projects
Model Context Protocol - Official MCP specification
MCP TypeScript SDK - Official TypeScript SDK
VS Code MCP Extension - VS Code MCP support
๐ Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Documentation: GitHub Pages
๐ Acknowledgments
The MCP community for creating an amazing protocol
Contributors who have shared their knowledge and best practices
The VS Code team for excellent MCP integration
Made with โค๏ธ for the developer community
Compatible with VS Code, GitHub Copilot, Claude Desktop, and other MCP clients
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
Serves your design system and coding standards to coding agents, so they stop guessing.
Coding guidelines and best-practice guides for 130+ languages, frameworks, and tools.
Scores your code across 12 areas, with findings, fix prompts, and re-assessment in your AI agent
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides tools for accessing coding style guidelines and best practices for various technologies including Java, Python, and React.317MIT
- AlicenseNot gradedqualityDmaintenanceProvides real-time TBC Bank development standards compliance checking and code review tools. Integrates with GitHub Copilot and development workflows to automatically enforce coding guidelines and reduce violations.ISC
- AlicenseAqualityDmaintenanceProvides AI assistants with frontend development tools including component scaffolding, bundle analysis, accessibility checks, and responsive design guidance. Enables automated generation of React components with tests and stories, bundle optimization recommendations, and WCAG compliance fixes.6MIT
- AlicenseAqualityBmaintenanceEnables AI assistants and developers to analyze code for language-specific best practices and idiomatic patterns across programming languages, CI automation, and configuration formats.16800 PyPI2MIT