1. Conduid
  2. AI
  3. Model Context Protocol Server
MCP server · AI

Model Context Protocol Server

MCP server: Model Context Protocol Server

Unclaimed last commit a year ago ai
37Low

Scored 5 months ago · breakdown

About Model Context Protocol Server

Model Context Protocol Server is an MCP server published by evinhua in the AI category: mCP server: Model Context Protocol Server.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/evinhua/model-context-protocol-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Model Context Protocol Server

Powered by Claude · Grounded in docs

I know everything about Model Context Protocol Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Model Context Protocol (MCP) Server

A server implementation of the Model Context Protocol for managing context between AI models and applications.

What is MCP?

The Model Context Protocol (MCP) is a protocol for managing context between AI models and applications. It provides a standardized way to:

  1. Create and manage sessions for user interactions
  2. Store and retrieve context data
  3. Process context with AI models
  4. Merge and summarize contexts
  5. Query models with context-aware prompts

Features

  • Session management
  • Context storage and retrieval
  • Context processing with AI models
  • Context merging and summarization
  • Model querying with context

Getting Started

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Configure environment variables in .env:
    PORT=3000
    API_KEY=your_api_key_here
    MODEL_ENDPOINT=http://localhost:8000/v1/completions
    CONTEXT_DB_PATH=./data/context_db.json
    MODEL_TYPE=mistral
    
  4. Start the server:
    npm start
    

API Endpoints

Sessions

  • POST /api/session - Create a new session
  • GET /api/session/:sessionId - Get a session by ID
  • PATCH /api/session/:sessionId - Update a session
  • DELETE /api/session/:sessionId - Delete a session
  • GET /api/session/:sessionId/contexts - Get all contexts for a session

Contexts

  • POST /api/context - Create a new context
  • GET /api/context/:contextId - Get a context by ID
  • PATCH /api/context/:contextId - Update a context
  • DELETE /api/context/:contextId - Delete a context
  • POST /api/context/merge - Merge multiple contexts
  • POST /api/context/:contextId/summarize - Summarize a context

Models

  • POST /api/model/query - Query the model with a prompt and context
  • POST /api/model/process - Process context with a model

Authentication

All API endpoints are protected with API key authentication. Include your API key in the Authorization header:

Authorization: Bearer your_api_key_here

Data Storage

By default, context data is stored in a JSON file at ./data/context_db.json. You can configure a different path in the .env file.

Model Integration

The server is designed to work with any AI model that supports a compatible API. Configure the model endpoint in the .env file.

Supported Model Types

The server supports different model types through the MODEL_TYPE environment variable:

  • mistral - For Mistral AI models
  • openai - For OpenAI models
  • anthropic - For Anthropic models
  • generic - For other model providers

SSL Certificate Verification

For development purposes, SSL certificate verification is disabled by default. In production environments, you should:

  1. Either provide proper certificates
  2. Or remove the rejectUnauthorized: false option in modelManager.js

Example Usage

Create a Session

curl -X POST http://localhost:3000/api/session \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"metadata": {"user": "example_user"}}'

Create a Context

curl -X POST http://localhost:3000/api/context \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "session_123",
    "data": {
      "conversation": [
        {"role": "user", "content": "Hello, how are you?"},
        {"role": "assistant", "content": "I'm doing well, thank you for asking!"}
      ]
    }
  }'

Query a Model with Context

curl -X POST http://localhost:3000/api/model/query \
  -H "Authorization: Bearer your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What was my last question?",
    "contextId": "ctx_123",
    "sessionId": "session_123"
  }'

License

MIT

README fetched from the repository 6 days ago. The original is authoritative.

Questions

About Model Context Protocol Server

How do I install Model Context Protocol Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Model Context Protocol Server safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Model Context Protocol Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.