Custom AI tool server
Expose tools and resources that Claude Desktop can discover and use automatically.
Create your own AI tool ecosystem using Spring AI and MCP protocol.
Test the MCP server directly with JSON-RPC requests:
Add this to your Claude Desktop MCP settings:
{
"mcpServers": {
"kotlin-ai-server": {
"command": "curl",
"args": [
"-X", "POST",
"-H", "Content-Type: application/json",
"https://ai.rodland.no/mcp"
]
}
}
}
Note: Simplified example. Real integration requires stdio transport.
Model Context Protocol (MCP) is an open standard for connecting AI assistants to external tools and data sources.
Test function that greets a person by name. Use this to verify the system is working.
Parameters: name (string) - optionalGet the current date and time. Returns server time plus UTC time with timezone calculation examples. Use this for any time-related queries including specific locations like Tokyo, New York, etc.
No parameters requiredGenerate a random inspirational quote using AI.
No parameters requiredGet detailed company information including name, description, and business details for any stock symbol.
Parameters: symbol (string) - requiredGet real-time weather nowcast with 5-minute precision. Only works for Nordic countries (Norway, Sweden, Denmark, Finland).
Parameters: latitude (number) - required, longitude (number) - requiredGet detailed weather forecast for any location worldwide including temperature, humidity, wind, pressure, and clouds.
Parameters: latitude (number) - required, longitude (number) - requiredGet user's real geographic location from their IP address including city, country, and coordinates. Use this when you need the actual user location.
Parameters: ip (string) - optionalGet real-time stock market data including current price, open/close prices, volume, and trading information. Use this for actual market data.
Parameters: symbol (string) - requiredGet real current news headlines from major news sources worldwide. Use country codes: 'us' (USA), 'gb' (UK), 'fr' (France), 'de' (Germany), 'no' (Norway), 'se' (Sweden), 'ca' (Canada), 'au' (Australia).
Parameters: country (string) - optional, category (string) - optionalGet NASA's Astronomy Picture of the Day with stunning space images and explanations. Optionally specify a date (YYYY-MM-DD format).
Parameters: date (string) - optionalGet information about asteroids and other Near Earth Objects approaching Earth. Shows distances, speeds, and potential hazards.
Parameters: date (string) - optionalSearch for music tracks on Spotify. Find songs by title, artist, or keywords.
Parameters: query (string) - requiredSearch for music artists on Spotify. Find artist information, genres, and follower counts.
Parameters: query (string) - requiredGet popular/trending tracks from 2024. Optionally filter by music genre (pop, rock, hip-hop, jazz, etc.).
Parameters: genre (string) - optional