About Intent MCP Server
Intent MCP Server turns natural-language intents into structured objects and executable workflows. It is intended for applications that need an extensible API for creating, retrieving, and processing intents, with pluggable storage.
Key features
- 01Natural-language intent parsing
- 02Structured goals and constraints
- 03Intent create, retrieve, and process API
- 04Pluggable storage with in-memory implementation
- 05TypeScript type definitions
Use cases
- 01Convert user requests into structured intents
- 02Retrieve stored intents by ID
- 03Build applications around intent processing
MCP support
The project identifies itself as an MCP server, but the README describes HTTP API endpoints and does not specify MCP tools or resources.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEIntent MCP Server
A Model Context Protocol (MCP) server that processes natural language intents into structured, actionable formats. This server provides a robust API for managing and processing intents with a focus on extensibility and reliability.
Overview
This project implements an intent processing architecture that transforms natural language inputs into structured objects and generates executable workflows. It focuses on maintainability, type safety, and extensibility while providing a clean API for intent management.
Features
- 🎯 Intent Processing: Create, retrieve, and process intents through a well-defined API
- 🔍 Natural Language Understanding: Parse and understand raw user intentions
- 🧩 Intent Decomposition: Transform intentions into structured objects with goals and constraints
- 💾 Flexible Storage: Pluggable storage system with built-in in-memory implementation
- 📝 Type Safety: Full TypeScript implementation with comprehensive type definitions
- 🛡️ Error Handling: Robust error handling and logging system
- 🧪 Testing: Comprehensive test suite with Jest
- 📚 API Documentation: Clear API documentation and examples
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
Installation
- Clone the repository:
git clone https://github.com/openpandacodes/intent-mcp-server.git
cd intent-mcp-server
- Install dependencies:
npm install
- Create a
.envfile in the root directory:
cp .env.example .env
- Update the
.envfile with your configuration settings.
Configuration
The server can be configured using environment variables:
NODE_ENV: Environment (development, production, test)PORT: Server port (default: 3000)LOG_LEVEL: Logging level (debug, info, warn, error)
Usage
Development
Start the development server with hot reloading:
npm run dev
Production
Build and start the production server:
npm run build
npm start
Testing
Run tests:
npm test
Run tests with coverage:
npm run test:coverage
API Endpoints
Intent Management
-
POST /api/intent: Create a new intentcurl -X POST http://localhost:3000/api/intent \ -H "Content-Type: application/json" \ -d '{"rawIntent": "Your natural language intent here"}' -
GET /api/intent/:id: Get an intent by IDcurl -X GET http://localhost:3000/api/intent/YOUR_INTENT_ID
Additional endpoints are documented in the API specification.
Health Check
GET /health: Check server health status
Architecture
The server follows a clean architecture pattern with distinct layers:
- Controllers: Handle HTTP requests and responses
- Services: Implement core business logic and intent processing
- Storage: Manage data persistence with pluggable implementations
- Models: Define data structures and types
Key Components
IntentController: Handles intent-related HTTP endpointsIntentService: Core service for intent processingStorageInterface: Abstract storage layerInMemoryStorage: Reference implementation of storage interface
Project Structure
intent-mcp-server/
├── src/
│ ├── controllers/ # HTTP request handlers
│ ├── services/ # Business logic implementation
│ │ └── __tests__/ # Service tests
│ ├── storage/ # Storage implementations
│ ├── models/ # Type definitions
│ └── utils/ # Utility functions
├── tests/ # Test suites
└── config/ # Configuration files
Intent Structure
The system structures intentions into formal objects:
interface Intent {
id: string;
rawIntent: string;
processed: {
goals: Goal[];
constraints: Constraint[];
metadata: Record<string, unknown>;
};
status: "pending" | "processing" | "completed" | "failed";
createdAt: Date;
updatedAt: Date;
}
Error Handling
The server implements comprehensive error handling:
- Custom error classes for different types of errors
- Proper HTTP status codes and error responses
- Structured logging for debugging and monitoring
- Validation using TypeScript types
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
Please ensure your code:
- Follows the existing style and conventions
- Includes appropriate tests
- Updates documentation as needed
- Uses conventional commit messages
License
MIT License - see LICENSE file for details
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.