modelscope·@fikrimastor/context-mcp
暂无描述。
A CloudFlare Workers-based Model Context Protocol (MCP) server that provides semantic memory and journal capabilities with zero-setup user experience.
addMemory: Store memories with semantic search capabilitiessearchMemory: Find relevant memories using semantic similarityaddJournal: Create journal entries with optional titles and tagssearchJournals: Search journal entries semanticallygetRecentActivity: Get recent memories and journal entriesnpm install -g wrangler
wrangler login
git clone <repository-url>
cd context-mcp
npm install
npm run setup
This script will:
npm run deploy
# Health check
curl https://your-worker.workers.dev/health
# Generate a user ID
curl https://your-worker.workers.dev/generate-user
npm run seed [USER_ID]
Connect to your deployed worker using the SSE endpoint:
https://your-worker.workers.dev/{USER_ID}/sse
Add to your claude_desktop_config.json:
{
"mcpServers": {
"context": {
"command": "npx",
"args": ["@modelcontextprotocol/server-sse", "https://your-worker.workers.dev/{USER_ID}/sse"]
}
}
}
You can also use HTTP POST requests to the MCP endpoint:
curl -X POST https://your-worker.workers.dev/{USER_ID} \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "addMemory",
"arguments": {
"content": "Learning about MCP protocol implementation",
"tags": ["learning", "mcp"]
}
}
}'
Store a new memory with semantic search capabilities.
{
"name": "addMemory",
"arguments": {
"content": "The memory content to store",
"tags": ["optional", "tags"]
}
}
Search memories using semantic similarity.
{
"name": "searchMemory",
"arguments": {
"query": "Search query text",
"limit": 5,
"tags": ["optional", "filter"]
}
}
Create a new journal entry.
{
"name": "addJournal",
"arguments": {
"title": "Optional title",
"content": "Journal entry content",
"tags": ["optional", "tags"]
}
}
Search journal entries semantically.
{
"name": "searchJournals",
"arguments": {
"query": "Search query text",
"limit": 5,
"tags": ["optional", "filter"]
}
}
Get recent memories and journal entries.
{
"name": "getRecentActivity",
"arguments": {
"days": 7,
"limit": 10
}
}
npm run dev
This starts a local development server with hot reloading.
# Execute SQL file
npm run db:execute -- --file=schema.sql
# Run SQL command
npm run db:query -- "SELECT COUNT(*) FROM memories;"
# View logs
npm run logs
npm run build
context-mcp/
src/
worker.ts # Main CloudFlare Worker
mcp-handler.ts # MCP protocol implementation
sse-handler.ts # Server-Sent Events handler
types.ts # TypeScript type definitions
scripts/
setup-database.js # Database setup automation
seed-data.js # Test data seeding
schema.sql # Database schema
wrangler.toml # CloudFlare configuration
package.json # Dependencies and scripts
Set in wrangler.toml under [vars]:
[vars]
NODE_ENV = "production"
# Add custom variables here
The worker uses these CloudFlare bindings:
DB: D1 Database for structured dataVECTORIZE: Vector search indexAI: BGE embeddings generationSESSIONS: KV namespace for sessionscurl https://your-worker.workers.dev/health
The SSE handler provides connection monitoring capabilities for debugging.
npm run logs
View real-time CloudFlare Worker logs.
通过向量嵌入技术,为项目提供记忆库和RAG上下文支持,以增强代码理解和管理,并与RooCode和Cline集成。
通过全局和分支特定的记忆库,管理跨 Claude AI 会话的项目文档和上下文的服务器,通过结构化的 JSON 文档存储实现一致的知识管理。
快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。
一种模型上下文协议服务器,通过在语言模型交互之间高效缓存数据来减少令牌消耗,自动存储和检索信息以最小化冗余令牌使用。
通过集成DeepSeek R1的高级推理引擎以处理复杂推理任务,从而增强Claude推理能力的服务器。
通过简化的SOLID架构,启用提示词的创建、管理和模板化,允许用户按类别组织提示词并在运行时填充模板。