what is MCP Server?
MCP Server is a NEXT Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to interact with NEXT structured data, providing tools for data highlights and clustering.
how to use MCP Server?
To use MCP Server, install it via npm, configure your NEXT API key, and run the server using Node.js. You can also connect it to Claude Desktop for enhanced functionality.
key features of MCP Server?
- Provides tools for getting highlights and clusters from NEXT data.
- Built with TypeScript and the MCP SDK for secure data interaction.
- Allows integration with LLMs like Claude for advanced data processing.
use cases of MCP Server?
- Extracting user frustrations from data highlights.
- Summarizing main topics from clusters of data.
- Enhancing LLM capabilities with structured data access.
FAQ from MCP Server?
- What are the prerequisites for using MCP Server?
You need Node.js 18 or higher, npm, and a NEXT API key.
- Can I run MCP Server without installing it globally?
Yes, you can use npx to run it without global installation.
- Is there a way to debug the server?
Yes, you can use the MCP Inspector for debugging.
Next MCP server
A NEXT Model Context Protocol (MCP) server that provides tools for interacting NEXT data.
Overview
This MCP server allows Large Language Models (LLMs) like Claude to interact with NEXT structured data. It provides tools for:
- Getting highlights
- Getting cluster
The server is built using TypeScript and the MCP SDK, providing a secure and standardized way for LLMs to interface with NEXT.
Installation
Prerequisites
- Node.js 18 or higher
- npm
- NEXT api key
Setup
- Install via npm:
# Install globally via npm
npm install -g @collaborne/mcp-server
# Or as a dependency in your project
npm install @collaborne/mcp-server
- If building from source:
# Clone the repository
git clone https://github.com/Collaborne/mcp-server.git
cd mcp-server
# Install dependencies and build
npm install
npm run build
- Configure NEXT access:
Create a .env
file with your AWS configuration:
API_KEY=your-api-key
Or set these as environment variables.
Configuration
The server can be configured using the following environment variables:
Variable | Description | Default |
---|---|---|
API_KEY | NEXT api key that you can generate from your settings | `` |
Running the Server
You can run the server with Node.js:
# Using npx (without installing)
npx @collaborne/mcp-server
# If installed globally
npm install -g @collaborne/mcp-server
cd mcp-server
# If running from cloned repository
npm start
# Or directly
node dist/index.js
Debugging on MCP Inspector
To debug the server using MCP Inspector, you can run sh run-inspector.sh
sh run-inspector.sh
Connecting to Claude Desktop
To use this server with Claude Desktop:
-
Edit your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the NEXT MCP server to the configuration:
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": ["@collaborne/mcp-server"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Important: Please note the following when using the configuration above
- Replace
NEXT_API_KEY
with your actual api key from next team-space. Access to the NEXT API is scoped to a specific team-space. Each API token is bound to one team-space and cannot access data outside of it.
💣 If error occurs on Claude Desktop
If you encounter errors with the above configuration in Claude Desktop, try using absolute paths as follows:
# Get the path of node and mcp-server
which node
which @collaborne/mcp-server
{
"globalShortcut": "",
"mcpServers": {
"next": {
"command": "your-absolute-path-to-node",
"args": ["your-absolute-path-to-mcp-server/dist/index.js"],
"env": {
"API_KEY": "your-api-key",
}
}
}
}
Available Tools
get-highlights
Lists available NEXT highlights that the server has permission to access. This tool is limited to one team-space
Parameters:
searchFilters
(required): filters for highlights based on the user query
Example input:
What are the user frustrations and issues mentioned in the last week
Example output:
{
"searchFilters": {
"dateFilter": "last week",
"typeFilters": [
"Pain Point"
]
}
}
get-clusters
Lists available NEXT clusters that the server has permission to access. This tool is limited to one team-space
Parameters:
searchQuery
(required): search query for clusters based on the user query
Example input:
Summarize the main topics
Example output:
{
"searchQuery": "main topics"
}
Security Considerations
- The server will only access team-space specific data
Usage with Claude
When interacting with Claude in the desktop app, you can ask it to perform NEXT operations like:
- "Summarize highlights about X topic"
- "What are the main pain points mentioned in clusters"
Claude will use the appropriate MCP tool to carry out the request and show you the results.
License
MIT