MCP.so
登录

ContextBase (MCP Server)

@imfeniljikadara

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

imfeniljikadara

关于 ContextBase

A mcp server for storing and managing user context for ai apps via api

ContextBase 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

ContextBase 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is ContextBase (MCP Server)?

ContextBase (MCP Server) is a Model Context Protocol server for AI agents, assistants, and applications. It stores, retrieves, and manages per-user context using a simple API, built with TypeScript, Fastify, Prisma ORM, PostgreSQL, and Redis.

How to use ContextBase (MCP Server)?

Install Node.js v14+, PostgreSQL, and Redis. Clone the repository, install dependencies, configure environment variables (DATABASE_URL, REDIS_HOST, REDIS_PORT, JWT_SECRET, PORT), run database migrations with npx prisma migrate dev, then start the server with npm start or docker-compose up. Use the provided REST API endpoints (e.g., POST /api/auth/register, POST /api/memory) to register users, login, and manage memory objects.

Key features of ContextBase (MCP Server)

  • Secure user authentication using JWT and bcrypt
  • API endpoints for storing and retrieving memory data
  • Comprehensive logging of user actions
  • PostgreSQL for persistent storage
  • Redis for high-performance caching
  • Modern tech stack: TypeScript, Fastify, Prisma ORM

Use cases of ContextBase (MCP Server)

  • AI assistants maintaining per-user conversation history
  • Applications storing user-specific context across sessions
  • Managing and retrieving user memories via a RESTful API
  • Auditing user actions with a built-in logging system

常见问题

1

What runtime and dependencies are required?

Node.js v14 or higher, PostgreSQL, and Redis are required. Docker and Docker Compose can be used for containerized deployment.

2

How does authentication work?

The server uses JWT and bcrypt. Users can register via `POST /api/auth/register` and login via `POST /api/auth/login` to obtain a token.

3

What data can be stored and retrieved?

Memory objects can be created, read, updated, and deleted via REST endpoints (`/api/memory`). Logs of user actions are accessible at `/api/logs`.

4

Where is data persisted?

Per-user context is stored in PostgreSQL; Redis is used as a caching layer for performance.

5

What transport protocol does the server use?

The server exposes a REST API over HTTP, listening on a configurable port (default 3000). No WebSocket or other transports are mentioned.

评论

其他 分类下的更多 MCP 服务器