jianyi2-skill
v1.0.0
Published
MCP server for the Advice Slip API (named jianyi2-skill)
Maintainers
Readme
jianyi2-skill
An MCP (Model Context Protocol) server that provides access to the Advice Slip API, allowing you to get random advice and search for advice by keyword.
Installation
- Clone or install this package:
npm install- Configure Claude Code to use this MCP server:
- Edit your Claude Code configuration file (usually located at
~/.config/claude-code/config.json) - Add this server to the
mcpServerssection:
- Edit your Claude Code configuration file (usually located at
{
"mcpServers": {
"jianyi2-skill": {
"command": "node",
"args": ["D:/CLI/jianyi2-skill/index.js"]
}
}
}Note: Adjust the path to match your actual installation path.
Usage
Once configured, you can use these tools in Claude Code:
getRandomAdvice
Get a random piece of advice.
Example usage:
Use getRandomAdvice to get some daily wisdom.searchAdvice
Search for advice by keyword.
Note: The search feature may be temporarily unavailable. If you encounter an error, please try the random advice tool instead.
Example usage:
Search for advice about "success" using searchAdvice.API Endpoints
This MCP server exposes the following endpoints from the Advice Slip API:
GET https://api.adviceslip.com/advice- Returns a random advice slipGET https://api.adviceslip.com/advice/search?query={keyword}- Searches for advice containing the specified keyword
Features
- Random advice generation
- Keyword-based search functionality
- Simple JSON responses
- No authentication required
- Free to use
License
MIT
