Nia Codebase MCP
The Nia Codebase MCP server allows you to integrate with Nia's codebase understanding capabilities through function calling in tools like Cursor, Claude Desktop, and other MCP-compatible clients.
Installation
You can use this MCP server without installing it using npx:
Transport Options
The Nia Codebase MCP server supports two transport methods:
1. Standard Input/Output (stdio) - Default
This is the default transport method and is used when no transport is specified:
2. Server-Sent Events (SSE)
To use SSE transport, specify the --transport=sse
flag and optionally a port (default is 3000):
Usage in MCP Clients
Cursor
- Open Cursor Settings > Features > MCP Servers
- Add a new MCP server
- Name:
nia-codebase
- Type:
command
- Command:
npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY
Claude Desktop
Add to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json
:
For Windows users, the configuration is at %APPDATA%\Claude\claude_desktop_config.json
.
Example Prompts
Debugging
If the server isn't working properly, you can enable debug mode:
Environment Variables
You can also configure the server using environment variables:
NIA_API_KEY
: Your Nia API keyTRANSPORT
: The transport method to use (stdio
orsse
)PORT
: The port to use for SSE transport (default: 3000)TOOL_TIMEOUT_MS
: Custom timeout for tool execution (default: 300000ms)DEBUG
: Enable debug mode (true
orfalse
)
Tools
This MCP server provides the following tool:
- lookup_codebase_context: Look up context from a codebase indexed in Nia, retrieving relevant code snippets based on user queries.
Requirements
- Node.js 18 or higher
- A valid Nia API key
- A codebase indexed in Nia
License
MIT
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Ein MCP-Server, der die Integration mit den Codebase-Verständnisfunktionen von Nia durch Funktionsaufrufe in Tools wie Cursor und Claude Desktop ermöglicht, sodass Benutzer die Projektstruktur analysieren und Codebases über Abfragen in natürlicher Sprache durchsuchen können.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -15247MIT License
- -securityFlicense-qualityA Model Context Protocol (MCP) server that enables interaction with JIRA APIs through Claude Desktop, allowing users to search, create, update, and manage JIRA issues using natural language commands.Last updated -
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -
- -securityAlicense-qualityAn MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.Last updated -11MIT License