Project Content Server
An MCP server that provides access to project files and their contents.
Installation
Clone the repository
Install dependencies:
npm installBuild the project:
npm run build
Usage
Start the server:
node build/index.js
API
latest_project_data
Get all files and their contents from a project directory.
Parameters:
projectPath(string): Path to the project directory
Example Request:
{
"name": "latest_project_data",
"arguments": {
"projectPath": "/path/to/project"
}
}
Example Response:
{
"file1.txt": "Contents of file1",
"subdir/file2.js": "Contents of file2"
}
Configuration
The server can be configured using environment variables:
PORT: Port to run the server on (default: stdio)
Error Handling
The server returns errors in the following format:
{
"content": [{
"type": "text",
"text": "Error message"
}],
"isError": true
}
Common errors include:
Invalid project path
Permission denied errors
File system errors
License
MIT
Related MCP Servers
- Asecurity-licenseAqualityMCP server for collecting code from files and directories into a single markdown document.Last updated -9MIT License
- -security-license-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated -34MIT License
- Asecurity-licenseAqualityA MCP Server used to collect MCP Servers over the internet.Last updated -319
- Asecurity-licenseAqualityAn MCP server that provides tools for reading, writing, and editing files on the local filesystem.Last updated -1,558Apache 2.0