Provides raw access to Markdown files and directories, enabling AI agents to retrieve unprocessed markdown content from single files or combine multiple .md files from directories for documentation and knowledge base access.
MCP ContentEngineering - Simplified
A simplified Model Context Protocol (MCP) server for raw Markdown content access. This server provides a single powerful tool for accessing raw Markdown files or combining multiple files from directories without any processing or parsing.
π Quick Start
Prerequisites
Node.js 18+ and npm
Markdown files or directories containing
.mdfilesMCP-compatible client (like Claude Desktop, Cursor IDE, or any MCP client)
Installation & Configuration
Option 1: Using npx from GitHub (Recommended)
No installation needed! Just configure your MCP client:
For Claude Desktop (
For Cursor IDE:
Option 2: Local Development Installation
Clone and setup:
Configure content source: Create a
.envfile with your content configuration:
Configure MCP client with local path:
π οΈ Available Tool
MCPContentEngineering provides 1 specialized tool for Markdown content access:
π Raw Content Access - content_get_raw
Get raw Markdown content without any processing, parsing, or indexing. Perfect for accessing business rules, documentation, or knowledge bases exactly as they are written.
Features:
β Single File Mode: Returns exact file content
β Directory Mode: Combines ALL
.mdfiles with clear separatorsβ Recursive Search: Finds
.mdfiles in subdirectoriesβ No Processing: Content returned exactly as written
β Metadata Included: File size, modification date, source info
π§ Configuration Types & Examples
MCPContentEngineering supports two content source types with simple configuration:
π Environment Variables
Variable | Description | Values | Required |
| Content source type |
|
| Yes |
| Path to file or directory | Absolute or relative path | Yes |
π§ Configuration Examples
1. π Single Business Rules File
Perfect for accessing a specific rules or documentation file:
2. π Knowledge Base Directory
Combines all Markdown files from a documentation directory:
3. ποΈ Architecture Documentation
Access comprehensive architecture documentation:
4. π Project Standards & Patterns
Access coding standards and design patterns:
5. π Local Development Configuration
For local development and testing:
π Usage Examples
Single File Access
Directory Combination
Response Structure
π‘ Use Cases
1. π Enterprise Knowledge Base
Access company documentation, policies, and procedures:
2. ποΈ Architecture Documentation
Provide AI models with architectural guidelines and patterns:
3. π Coding Standards
Access development standards and best practices:
4. π Business Rules Engine
Provide specific business rules for decision-making:
5. π Project Documentation
Combine all project documentation for comprehensive context:
π¨ Troubleshooting Common Issues
File/Directory Not Found
Issue:
File not foundorDirectory not foundSolution: Verify the path exists and is accessible
Check: Use absolute paths for clarity
No .md Files Found
Issue:
No .md files found in directorySolution: Ensure directory contains
.mdfilesNote: Searches recursively in subdirectories
Permission Errors
Issue: Permission denied when accessing files
Solution: Ensure read permissions on files/directories
Check: File ownership and access rights
Configuration Issues
Issue:
CONTENT_SOURCE_PATH not configuredSolution: Set both required environment variables
Required:
CONTENT_SOURCE_TYPEandCONTENT_SOURCE_PATH
π§ͺ Testing
Run the comprehensive test suite:
The test suite includes:
β Unit Tests: Temporary file testing with various scenarios
β Real Tests: Actual architecture documentation testing
β Error Handling: Comprehensive error case coverage
β Content Validation: JSON serialization and data structure validation
Test Results:
ποΈ Architecture
Project Structure
Key Features
β‘ Zero Processing: Content returned exactly as written
π Recursive Search: Finds
.mdfiles in all subdirectoriesπ File Combination: Intelligent merging with clear separators
π Rich Metadata: Comprehensive file and content information
π‘οΈ Error Handling: Robust error handling and validation
π§ Simple Configuration: Just two environment variables
π Important Notes
File Types: Only processes
.md(Markdown) filesContent Preservation: Returns content exactly as written - no processing
Directory Mode: Recursively finds ALL
.mdfiles in subdirectoriesFile Separators: Clear HTML comment separators when combining files
Encoding: Assumes UTF-8 encoding for all files
Security: Read-only operations only - no file modifications
π€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes and add tests
Ensure all tests pass (
npm test)Commit your changes (
git commit -m 'Add amazing feature')Push to the 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.
π Acknowledgments
Built with the Model Context Protocol SDK
Uses fs-extra for file operations
Uses glob for file discovery
Comprehensive testing with Jest
π·οΈ Tags & Keywords
Content Management: markdown documentation knowledge-base content-access raw-content file-processing text-processing document-management
MCP & AI: model-context-protocol mcp-server mcp-tools ai-tools claude-desktop cursor-ide anthropic llm-integration ai-content intelligent-content
Technology: typescript nodejs npm-package cli-tool file-system markdown-reader content-sdk text-api file-api content-connector
Use Cases: business-rules architecture-docs coding-standards project-docs knowledge-management content-retrieval documentation-access standards-access rule-engine content-automation
π― MCPContentEngineering provides simple, direct access to raw Markdown content through the Model Context Protocol. Perfect for AI models that need access to business rules, documentation, or knowledge bases without any processing overhead! π
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Enables direct access to raw Markdown content from files or directories without processing. Perfect for providing AI models with business rules, documentation, or knowledge bases exactly as written.
Related MCP Servers
- Asecurity-licenseAqualityConverts various file types and web content to Markdown format. It provides a set of tools to transform PDFs, images, audio files, web pages, and more into easily readable and shareable Markdown text.Last updated -1072,163MIT License
- -security-license-qualityConverts various file types (documents, images, audio, web content) to markdown format without requiring Docker, supporting PDF, Word, Excel, PowerPoint, images, audio files, web URLs, and more.Last updated -2229
- Asecurity-licenseAqualityFast, token-efficient web content extraction tool that converts websites to clean Markdown for AI agents, featuring smart caching, content extraction with Mozilla Readability, and polite crawling capabilities.Last updated -114891MIT License
- -security-license-qualityProvides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.Last updated -1MIT License