Supported for environment configuration, allowing users to set up connection parameters for integrated services and server settings.
Provides the runtime environment for the MCP server, allowing it to execute JavaScript/TypeScript code and handle HTTP and stdio transports.
Provides services for generating embeddings and text with Ollama, allowing AI-powered applications to perform embedding generation and text generation operations locally.
Supported as a package manager for installing and managing dependencies of the MCP server implementation.
Built-in support for Supabase vector database, enabling storage and retrieval of vector embeddings for AI applications.
The MCP server is implemented in TypeScript, providing type safety and improved developer experience when extending the framework.
Used for schema validation in tools, resources, and prompts, enabling type-safe interactions with the MCP server's components.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Basehelp me create a new tool for analyzing customer feedback"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Base - A Generic Model Context Protocol Framework
This folder contains a general-purpose base implementation of the Model Context Protocol (MCP) for building AI-powered applications. It provides a standardized way to create MCP servers and clients that can be used to integrate LLMs into your applications.
๐ Features
Standardized MCP Server: A base server implementation with support for HTTP and stdio transports
Generic MCP Client: A client for connecting to any MCP server
Ollama Integration: Ready-to-use services for generating embeddings and text with Ollama
Supabase Integration: Built-in support for Supabase vector database
Modular Design: Clearly organized structure for resources, tools, and prompts
Sample Templates: Example implementations to help you get started quickly
Related MCP server: PAELLADOC
๐ ๏ธ Directory Structure
๐ Getting Started
Prerequisites
Node.js and npm/pnpm
Ollama for local embedding and text generation
Supabase account for vector storage
Environment Setup
Create a .env file with the following variables:
Server Initialization
Import the required modules
Register your resources, tools, and prompts
Start the server
Client Usage
๐ Extending the Framework
Creating a New Tool
Create a new file in the
tools/directoryDefine your tool function and schema using Zod
Implement your tool logic
Register the tool in your server
Creating a New Resource
Create a new file in the
resources/directoryDefine your resource endpoints and schemas
Implement your resource logic
Register the resource in your server
Creating a New Prompt
Create a new file in the
prompts/directoryDefine your prompt schema and parameters
Implement your prompt template
Register the prompt in your server
๐ License
MIT