MCP-Smallest.ai
The MCP-Smallest.ai server acts as middleware for interacting with Smallest.ai's knowledge base management system through the Model Context Protocol. It provides:
List Knowledge Bases: Retrieve a list of all available knowledge bases
Create Knowledge Base: Create a new knowledge base by providing a name and description
Get Knowledge Base: Retrieve details of a specific knowledge base by its ID
Standardized Interface: Ensures consistent communication with the Smallest.ai API
Validation and Error Handling: Manages parameter validation and error responses
MCP Protocol Support: Handles protocol communication and routes client requests
Documentation is available via docs://smallest.ai
Supports running the MCP server on the Bun runtime, providing an alternative execution environment to Node.js for the server implementation.
Utilizes environment variables for configuration management, specifically for storing the Smallest.ai API key securely.
Hosts project repository and provides version control, allowing for collaborative development and contribution to the MCP server.
Integrates with Smallest.ai's knowledge base management system, providing tools for listing, creating, and retrieving knowledge bases through the Smallest.ai API.
Supports running the MCP server on Node.js 18+, providing the required runtime environment for server execution.
Uses TypeScript for implementation, providing type-safe development of the MCP server and its integration with Smallest.ai.
Click on "Deploy 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-Smallest.ai list all my knowledge bases"
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-Smallest.ai
A Model Context Protocol (MCP) server implementation for Smallest.ai API integration. This project provides a standardized interface for interacting with Smallest.ai's knowledge base management system.
Architecture
System Overview
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ Client App │◄────┤ MCP Server │◄────┤ Smallest.ai │
│ │ │ │ │ API │
└─────────────────┘ └─────────────────┘ └─────────────────┘Component Details
1. Client Application Layer
Implements MCP client protocol
Handles request formatting
Manages response parsing
Provides error handling
2. MCP Server Layer
Protocol Handler
Manages MCP protocol communication
Handles client connections
Routes requests to appropriate tools
Tool Implementation
Knowledge base management tools
Parameter validation
Response formatting
Error handling
API Integration
Smallest.ai API communication
Authentication management
Request/response handling
3. Smallest.ai API Layer
Knowledge base management
Data storage and retrieval
Authentication and authorization
Data Flow
1. Client Request
└─► MCP Protocol Validation
└─► Tool Parameter Validation
└─► API Request Formation
└─► Smallest.ai API Call
└─► Response Processing
└─► Client ResponseSecurity Architecture
┌─────────────────┐
│ Client Auth │
└────────┬────────┘
│
┌────────▼────────┐
│ MCP Validation │
└────────┬────────┘
│
┌────────▼────────┐
│ API Auth │
└────────┬────────┘
│
┌────────▼────────┐
│ Smallest.ai │
└─────────────────┘Related MCP server: Rememberizer MCP Server
Overview
This project implements an MCP server that acts as a middleware between clients and the Smallest.ai API. It provides a standardized way to interact with Smallest.ai's knowledge base management features through the Model Context Protocol.
Architecture
[Client Application] <---> [MCP Server] <---> [Smallest.ai API]Components
MCP Server
Handles client requests
Manages API communication
Provides standardized responses
Implements error handling
Knowledge Base Tools
listKnowledgeBases: Lists all knowledge basescreateKnowledgeBase: Creates new knowledge basesgetKnowledgeBase: Retrieves specific knowledge base details
Documentation Resource
Available at
docs://smallest.aiProvides usage instructions and examples
Prerequisites
Node.js 18+ or Bun runtime
Smallest.ai API key
TypeScript knowledge
Installation
Clone the repository:
git clone https://github.com/yourusername/MCP-smallest.ai.git
cd MCP-smallest.aiInstall dependencies:
bun installCreate a
.envfile in the root directory:
SMALLEST_AI_API_KEY=your_api_key_hereConfiguration
Create a config.ts file with your Smallest.ai API configuration:
export const config = {
API_KEY: process.env.SMALLEST_AI_API_KEY,
BASE_URL: 'https://atoms-api.smallest.ai/api/v1'
};Usage
Starting the Server
bun run index.tsTesting the Server
bun run test-client.tsAvailable Tools
List Knowledge Bases
await client.callTool({
name: "listKnowledgeBases",
arguments: {}
});Create Knowledge Base
await client.callTool({
name: "createKnowledgeBase",
arguments: {
name: "My Knowledge Base",
description: "Description of the knowledge base"
}
});Get Knowledge Base
await client.callTool({
name: "getKnowledgeBase",
arguments: {
id: "knowledge_base_id"
}
});Response Format
All responses follow this structure:
{
content: [{
type: "text",
text: JSON.stringify(data, null, 2)
}]
}Error Handling
The server implements comprehensive error handling:
HTTP errors
API errors
Parameter validation errors
Type-safe error responses
Development
Project Structure
MCP-smallest.ai/
├── index.ts # MCP server implementation
├── test-client.ts # Test client implementation
├── config.ts # Configuration file
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # This fileAdding New Tools
Define the tool in
index.ts:
server.tool(
"toolName",
{
param1: z.string(),
param2: z.number()
},
async (args) => {
// Implementation
}
);Update documentation in the resource:
server.resource(
"documentation",
"docs://smallest.ai",
async (uri) => ({
contents: [{
uri: uri.href,
text: `Updated documentation...`
}]
})
);Security
API keys are stored in environment variables
All requests are authenticated
Parameter validation is implemented
Error messages are sanitized
Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Available Tools
3 toolscreateKnowledgeBaseD
Inputs: description (required), name (required).
getKnowledgeBaseD
Inputs: id (required).
listKnowledgeBasesD
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: create, get, and list operations on knowledge bases. There is no overlap in functionality, and the action verbs (create, get, list) are unambiguous and standard for CRUD operations.
All tool names follow a consistent camelCase pattern with a verb-noun structure (createKnowledgeBase, getKnowledgeBase, listKnowledgeBases). The naming is predictable and uniform across all three tools.
With only 3 tools, the set feels thin for a knowledge base management server, as it lacks update and delete operations. However, it covers basic create, retrieve, and list functions, which is minimal but functional for a small scope.
The tools provide create, get, and list operations, but there are notable gaps such as update and delete for knowledge bases. This limits full lifecycle management, though core retrieval and creation are covered.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.2561 npm1ISC
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server enabling LLMs to search, retrieve, and manage documents through Rememberizer's knowledge management API.36Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server implementation that provides a standardized interface for applications to interact with OpenRouter's language models through a unified conversation management system.10 npm2MIT
- AlicenseAqualityDmaintenanceA comprehensive Model Context Protocol server that integrates Elasticsearch search with file operations, document validation, and version control to transform AI assistants into powerful knowledge management systems.27145 PyPI27MIT