Provides tools for managing and searching personal project documentation stored as local markdown files, with support for nested directory structures and cross-project keyword search
MyContext MCP Server
Personal context MCP server untuk menyimpan dan mengakses dokumentasi project Anda. Mirip dengan Context7, tapi menggunakan file markdown lokal yang Anda kelola sendiri.
Features
š Nested Directory Structure - Organisir context berdasarkan project dan layer (backend/frontend/fullstack)
š Markdown-based - Tulis context dalam format markdown yang familiar
š Search Functionality - Cari keyword across semua project
š ļø 4 Tools - List, structure, read, dan search context files
š¾ Local Storage - Semua data tersimpan lokal di
~/.mycontext/
Installation
Clone atau download repository ini
Install dependencies:
Build the server:
Setup Context Directory
Buat struktur folder context di ~/.mycontext/
:
Example Structure
Example Context File
~/.mycontext/project1/backend/gin.md
:
Routes
GET /api/health
- Health checkPOST /api/auth/login
- User login
Middleware
CORS enabled
Logger middleware active
Custom auth middleware di
/middleware/auth.go
Ganti /absolute/path/to/
dengan path lengkap ke folder project ini.
Restart Claude Desktop
Setelah konfigurasi, restart Claude Desktop agar MCP server aktif.
Available Tools
1. list_projects
List semua project yang ada di context directory.
Input: (none)
Example Response:
2. get_project_structure
Lihat struktur lengkap sebuah project.
Input:
Example Response:
3. read_context
Baca isi file context tertentu.
Input:
Example Response:
4. search_context
Cari keyword di semua context files.
Input:
Example Response:
Usage Tips
Struktur Context yang Baik
Gunakan headers untuk organisasi:
#
untuk judul utama##
untuk sections###
untuk sub-sections
Include code snippets dengan syntax highlighting:
```javascript const example = "code here"; ```Dokumentasikan:
Setup instructions
API endpoints
Environment variables
Common issues & solutions
Best practices
Example Use Cases
Saat coding:
"Baca context project1 backend gin.md, lalu buatkan endpoint baru untuk user registration yang follow pattern yang ada"
Saat setup:
"Cari semua context yang mention 'environment variables' untuk setup local development"
Saat debugging:
"Lihat struktur project2, kemudian baca context drizzle.md untuk cek database schema"
Development
Watch mode
Update server
Setelah edit src/index.ts
, rebuild:
Lalu restart Claude Desktop.
Troubleshooting
Tools tidak muncul di Claude
Pastikan path di
claude_desktop_config.json
benar (absolute path)Restart Claude Desktop
Check logs di Claude Desktop developer console
Permission errors
Build errors
Pastikan Node.js version >= 18:
License
MIT
Contributing
Feel free to open issues atau submit pull requests untuk improvements!
Happy documenting! š
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables personal project documentation management through local markdown files stored in nested directories. Supports organizing context by project and layer (backend/frontend/fullstack) with search functionality across all documentation files.