{"id":34505059,"url":"https://github.com/alokkusingh/ai-llm-mcp","last_synced_at":"2026-03-13T09:31:11.783Z","repository":{"id":289405582,"uuid":"971140123","full_name":"alokkusingh/ai-llm-mcp","owner":"alokkusingh","description":"LLM Model Context Protocol (MCP) demo using Spring AI","archived":false,"fork":false,"pushed_at":"2025-04-23T04:42:47.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T05:28:26.364Z","etag":null,"topics":["java","lama","llm","mcp","mcp-host","mcp-server","ollama","spring-ai-mcp","spring-ai-ollama"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokkusingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T04:38:20.000Z","updated_at":"2025-04-23T05:10:29.000Z","dependencies_parsed_at":"2025-04-23T05:39:12.711Z","dependency_job_id":null,"html_url":"https://github.com/alokkusingh/ai-llm-mcp","commit_stats":null,"previous_names":["alokkusingh/ai-llm-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alokkusingh/ai-llm-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fai-llm-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fai-llm-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fai-llm-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fai-llm-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokkusingh","download_url":"https://codeload.github.com/alokkusingh/ai-llm-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fai-llm-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30464587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","lama","llm","mcp","mcp-host","mcp-server","ollama","spring-ai-mcp","spring-ai-ollama"],"created_at":"2025-12-24T02:54:28.617Z","updated_at":"2026-03-13T09:31:11.770Z","avatar_url":"https://github.com/alokkusingh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI LLM MCP Demo\n\n## Overview\nThis project demonstrates an **MCP (Model Context Protocol)** using **Ollama** (a locally hosted LLM) and **Java Spring Boot**.  \nThe demo features a simple chatbot that can answer questions about:\n- The current date, time, and month.\n- Expenses for the current month.\n\n---\n\n## Prerequisites\n- **Java 21**\n- **Ollama** installed on your system\n\n---\n\n## Build Instructions\nTo build the project, run the following command:\n\n```shell\nmvn clean package -DskipTests\n```\n\n## Ollama Server\n### Start\n```shell\nollama serve\n```\n\n### Stop\n```shell\nps -ef | grep \"ollama serve\" |grep -v \"grep\"| awk '{print $2}' | xargs kill -9\n```\n\n## MCP Host\n### Start\n```shell\njava -jar llm-mcp-host/target/llm-mcp-host-0.0.1-SNAPSHOT.jar\n```\n### Stop\n```shell\nps -ef | grep \"llm-mcp-host\" |grep -v \"grep\"| awk '{print $2}' | xargs kill -9\n```\n\n## MCP Realworld Server\n### Start\n```shell\njava -jar llm-mcp-realworld-server/target/llm-mcp-realworld-server-0.0.1-SNAPSHOT.jar\n```\n### Stop\n```shell\nps -ef | grep \"llm-mcp-realworld-server\" |grep -v \"grep\"| awk '{print $2}' | xargs kill -9\n```\n\n## MCP Accounting Server\n### Start\n```shell\njava -jar llm-mcp-accounting-server/target/llm-mcp-accounting-server-0.0.1-SNAPSHOT.jar\n```\n### Stop\n```shell\nps -ef | grep \"llm-mcp-accounting-server\" |grep -v \"grep\"| awk '{print $2}' | xargs kill -9\n```\n\n## Chat with llm\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What is time now?\"\n}' -H \"Content-Type: application/json\"\n```\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What date is Today?\"\n}' -H \"Content-Type: application/json\"\n```\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What Month and Year is Today?\"\n}' -H \"Content-Type: application/json\"\n```\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What is next Month?\"\n}' -H \"Content-Type: application/json\"\n```\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What was previous Month?\"\n}' -H \"Content-Type: application/json\"\n```\n```shell\ncurl -X POST http://localhost:8085/api/v1/chatbot/chat -d '{\n  \"question\": \"What Month and Year is Today? And, How much did I spend in the current month?\"\n}' -H \"Content-Type: application/json\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fai-llm-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokkusingh%2Fai-llm-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fai-llm-mcp/lists"}