Nordic Documentation MCP Server
March 15, 2025 ยท View on GitHub
An MCP (Model Context Protocol) server that provides tools for searching Nordic Semiconductor documentation, including API references and code examples.
Features
- Search Nordic Semiconductor documentation
- Filter results by SDK version
- Get API references and code examples
- Integration with Perplexity AI for intelligent search
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- A Perplexity API key (get one from Perplexity AI)
Installation
- Clone this repository:
git clone https://github.com/Olliwn/nordic-docs-server.git
cd nordic-docs-server
- Install dependencies:
npm install
- Create a
.envfile based on.env.example:
cp .env.example .env
- Add your Perplexity API key to the
.envfile:
PERPLEXITY_API_KEY=your-api-key-here
- Build the project:
npm run build
Installing in Different AI Apps
Cline
-
Open Cline's MCP settings file:
- Location:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Location:
-
Add the following configuration:
{
"mcpServers": {
"nordic-docs": {
"command": "node",
"args": ["/path/to/nordic-docs-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}
Claude Desktop App
-
Open Claude Desktop's configuration file:
- Location:
~/Library/Application Support/Claude/claude_desktop_config.json
- Location:
-
Add the following configuration:
{
"mcpServers": {
"nordic-docs": {
"command": "node",
"args": ["/path/to/nordic-docs-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}
Cursor
-
Open Cursor's settings:
- Click on the gear icon in the bottom left
- Select "MCP Settings"
-
Add the following configuration:
{
"mcpServers": {
"nordic-docs": {
"command": "node",
"args": ["/path/to/nordic-docs-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}
Usage
Once installed, the server provides the following tool:
search_nordic_docs: Search Nordic Semiconductor documentation- Parameters:
query(required): Search query or API function namesdk_version(optional): Target SDK version (e.g., "nRF5 SDK v17.1.0")result_type(optional): Type of results to return ('api_reference', 'code_example', or 'both')
- Parameters:
Example usage in Cline/Claude/Cursor:
"Search for information about the nrf_drv_spi_init function"
Development
To run the server in development mode:
npm run dev
To run tests:
npm test
License
MIT License
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